basesink: Shouldn't drop buffer when sync=false

Shouldn't drop buffer when sync=false

https://bugzilla.gnome.org/show_bug.cgi?id=751819
This commit is contained in:
Song Bing 2015-07-02 14:32:21 +08:00 committed by Sebastian Dröge
parent ab5fdd7212
commit 8e2c72f125

View file

@ -3423,7 +3423,7 @@ gst_base_sink_chain_unlocked (GstBaseSink * basesink, GstPad * pad,
if (G_UNLIKELY (stepped))
goto dropped;
if (syncable && do_sync) {
if (syncable && do_sync && gst_base_sink_get_sync (basesink)) {
GstClock *clock;
GST_OBJECT_LOCK (basesink);