GNOME Bugzilla – Bug 720199
basesrc: DTS becomes 0 in gst_base_src_do_sync() for first buffer
Last modified: 2013-12-17 09:49:38 UTC
Created attachment 263926 [details] [review] basesrc: use segment start if DTS for first buffer is unset We run into a problem with a small audio pipeline with one src and one sink. The first buffer is dropped by the sink, because the src sets its DTS to 0 in gst_base_src_do_sync(), and that is outside of the segment. The attached patch is a suggested fix that solves the problem in our case. It sets DTS to segment start instead of 0, if DTS is unset for the first buffer in gst_base_src_do_sync(). It would be nice with feedback on whether this is the correct thing to do in general. Part of the background is that we use timestamps that don't start on zero, which is why the DTS of zero ends up outside of the segment. (These timestamps originate from alsasrc, monotonic clock).
commit 892d36211fac3a2c663d9a1198c8a75a2dc3645e Author: David Svensson Fors <davidsf@axis.com> Date: Tue Dec 10 15:53:54 2013 +0100 basesrc: use segment start if DTS for first buffer is unset https://bugzilla.gnome.org/show_bug.cgi?id=720199