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  <wingo@pobox.com>

* libs/gst/base/gstbasesink.c (gst_base_sink_chain_unlocked): Only
warn if sync=true.
This commit is contained in:
Andy Wingo 2006-02-07 13:20:16 +00:00
parent d887b44ee9
commit e8f2242503
2 changed files with 17 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2006-02-07 Andy Wingo <wingo@pobox.com>
* libs/gst/base/gstbasesink.c (gst_base_sink_chain_unlocked): Only
warn if sync=true.
2006-02-06 Jan Schmidt <thaytan@mad.scientist.com>
* configure.ac:

View file

@ -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;