From: Michael R. <mr...@us...> - 2002-10-26 20:13:02
|
Update of /cvsroot/xine/xine-lib/src/dxr3 In directory usw-pr-cvs1:/tmp/cvs-serv6260/src/dxr3 Modified Files: dxr3_decode_spu.c Log Message: handle all events in the queue, not just the first one (I start to like the new events mechanism) Index: dxr3_decode_spu.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/dxr3/dxr3_decode_spu.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- dxr3_decode_spu.c 26 Oct 2002 16:14:27 -0000 1.22 +++ dxr3_decode_spu.c 26 Oct 2002 20:12:59 -0000 1.23 @@ -551,23 +551,23 @@ { xine_event_t *event; - if (!(event = xine_event_get(this->event_queue))) return; - + while ((event = xine_event_get(this->event_queue))) { #if LOG_SPU printf("dxr3_decode_spu: event caught: SPU_FD = %i\n",this->fd_spu); #endif - switch (event->type) { - case XINE_EVENT_FRAME_FORMAT_CHANGE: - this->height = ((xine_format_change_data_t *)event->data)->height; - this->aspect = ((xine_format_change_data_t *)event->data)->aspect; + switch (event->type) { + case XINE_EVENT_FRAME_FORMAT_CHANGE: + this->height = ((xine_format_change_data_t *)event->data)->height; + this->aspect = ((xine_format_change_data_t *)event->data)->aspect; #if LOG_BTN - printf("dxr3_decode_spu: aspect changed to %d\n", this->aspect); + printf("dxr3_decode_spu: aspect changed to %d\n", this->aspect); #endif - break; - } + break; + } xine_event_free(event); + } } static int dxr3_spudec_copy_nav_to_btn(dxr3_spudec_t *this, int32_t mode, em8300_button_t *btn) |