Insert a yield operation.
authorWim Taymans <wim.taymans@gmail.com>
Mon, 24 Dec 2001 01:52:33 +0000 (01:52 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 24 Dec 2001 01:52:33 +0000 (01:52 +0000)
Original commit message from CVS:
Insert a yield operation.

gst/avi/gstavidemux.c

index 862c03b..424a6fb 100644 (file)
@@ -660,6 +660,10 @@ gst_avidemux_process_chunk (GstAviDemux *avi_demux, guint64 filepos,
     return gst_avidemux_handle_event (avi_demux);
   }
 
+  /* we are running in an infinite loop, we need to _yield 
+   * from time to time */
+  gst_element_yield (GST_ELEMENT (avi_demux));
+
   return TRUE;
 }