blob: d682ee60c42494d3a899f622bccc87b5ee721097 [file] [log] [blame]
Patrick Williamsf1e5d692016-03-30 15:21:19 -05001From 73df2b5c0aea58015788f5a94a3ec65296a688d3 Mon Sep 17 00:00:00 2001
2From: Song Bing <b06498@freescale.com>
3Date: Thu, 2 Jul 2015 14:32:21 +0800
4Subject: [PATCH] basesink: Shouldn't drop buffer when sync=false
5
6Shouldn't drop buffer when sync=false
7
8Upstream-Status: Accepted
9
10https://bugzilla.gnome.org/show_bug.cgi?id=751819
11---
12 libs/gst/base/gstbasesink.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c
16index d44e8fc..cd759ac 100644
17--- a/libs/gst/base/gstbasesink.c
18+++ b/libs/gst/base/gstbasesink.c
19@@ -3423,7 +3423,7 @@ gst_base_sink_chain_unlocked (GstBaseSink * basesink, GstPad * pad,
20 if (G_UNLIKELY (stepped))
21 goto dropped;
22
23- if (syncable && do_sync) {
24+ if (syncable && do_sync && gst_base_sink_get_sync (basesink)) {
25 GstClock *clock;
26
27 GST_OBJECT_LOCK (basesink);
28--
291.7.9.5
30