GNOME Bugzilla – Bug 321011
gstbasertpdepayload doesn't send the "new segment" event for all instances
Last modified: 2005-11-08 22:34:19 UTC
The base depayloader class (gstbasertpdepayload) sends the "new segment" event only the first time it is run. This is because gst_base_rtp_depayload_set_gst_timestamp() is using a static (eek!!!) variable to indicate the first frame.
Created attachment 54503 [details] [review] Proposed fix Adds a variable to the class to indicate the first frame.
Thanks, applied with modifications (use 'need_newsegment' instead of 'first' and maintain API and ABI compatibility. gstbasertpdepayload.h is a publicly installed header after all): 2005-11-08 Sebastien Cote <sebas642 at yahoo dot ca> * gst-libs/gst/rtp/gstbasertpdepayload.c: (gst_base_rtp_depayload_init), (gst_base_rtp_depayload_set_gst_timestamp): * gst-libs/gst/rtp/gstbasertpdepayload.h: We need to send a newsegment event for each instance, not just for the first instance of this class (get rid of static variable in function). (#321011). Cheers -Tim