[gst-devel] PATCH: urgent fix to gstbasertpdepayload.c

Kai Vehmanen kvehmanen at eca.cx
Fri Dec 2 05:43:13 CET 2005


Hi,

could someone please apply the following to 
gst-plugins-base/gst-libs/gst/rtp/gstbasertpdepayload.c:

-    gst_base_rtp_depayload_wait (filter, GST_NSECOND / filter->clock_rate);
+    /* sleep for 5msec */
+    gst_base_rtp_depayload_wait (filter, GST_MSECOND * 5);

'GST_NSECOND / filter->clock_rate' will always be zero, which means
that gstbasertpdepayload will essentailly create a thread running 
'while(1) {}'.

Sleeping for 5ms is a hack (my humble suggestion would be to make the 
depayload src pad pull-based, so the media sinks would pull data from the 
depayload, but this is too late for 0.10), but it sort of works for both 
audio and video.

PS Will add this item to the bugtracker.

--
  under work: Sofia-SIP at http://sofia-sip.sf.net




More information about the gstreamer-devel mailing list