basesrc: Only set DTS to segment.start on the first buffer if subclass did not provid...
authorSebastian Dröge <sebastian@centricular.com>
Sun, 12 Apr 2015 11:13:32 +0000 (13:13 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 13 Apr 2015 07:23:02 +0000 (09:23 +0200)
commit7d3d4503a1d33f22dfdfb7402240f0d125b31239
treeceb3b9a7fb845a01a9bb413d14ac7d086723187d
parent64094204748e987197783cc7b7e0e98d22e5e2f3
basesrc: Only set DTS to segment.start on the first buffer if subclass did not provide PTS

Otherwise we're going to set a rather arbitrary DTS of segment.start (usually
0) for live sources, which confuses synchronization if the source started
capturing at a later time. And it's especially wrong for raw media, for which
we should not set any DTS at all.

https://bugzilla.gnome.org/show_bug.cgi?id=747731
libs/gst/base/gstbasesrc.c