basesink: Shouldn't drop buffer when sync=false
authorSong Bing <b06498@freescale.com>
Thu, 2 Jul 2015 06:32:21 +0000 (14:32 +0800)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 6 Jul 2015 08:38:48 +0000 (11:38 +0300)
Shouldn't drop buffer when sync=false

https://bugzilla.gnome.org/show_bug.cgi?id=751819

libs/gst/base/gstbasesink.c

index d44e8fc..cd759ac 100644 (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);