From e8f2242503d1e449e9e2bbd7fc1b3bfa3e69e699 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 7 Feb 2006 13:20:16 +0000 Subject: [PATCH] libs/gst/base/gstbasesink.c (gst_base_sink_chain_unlocked): Only warn if sync=true. Original commit message from CVS: 2006-02-07 Andy Wingo * libs/gst/base/gstbasesink.c (gst_base_sink_chain_unlocked): Only warn if sync=true. --- ChangeLog | 5 +++++ libs/gst/base/gstbasesink.c | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93361fd15a..8ddf8b7020 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-07 Andy Wingo + + * libs/gst/base/gstbasesink.c (gst_base_sink_chain_unlocked): Only + warn if sync=true. + 2006-02-06 Jan Schmidt * configure.ac: diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index bbfa4e8caf..8fbc671a69 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -1222,9 +1222,18 @@ gst_base_sink_chain_unlocked (GstBaseSink * basesink, GstPad * pad, goto flushing; if (G_UNLIKELY (!basesink->have_newsegment)) { - GST_ELEMENT_WARNING (basesink, STREAM, FAILED, - (_("Internal data flow problem.")), - ("Received buffer without a new-segment. Cannot sync to clock.")); + gboolean sync; + + GST_OBJECT_LOCK (basesink); + sync = basesink->sync; + GST_OBJECT_UNLOCK (basesink); + + if (sync) { + GST_ELEMENT_WARNING (basesink, STREAM, FAILED, + (_("Internal data flow problem.")), + ("Received buffer without a new-segment. Cannot sync to clock.")); + } + basesink->have_newsegment = TRUE; /* this means this sink will not be able to sync to the clock */ basesink->abidata.ABI.clip_segment->start = -1;