From 6c4882996f9ad2c2110deb30b7946acd99649006 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 12 May 2014 13:46:01 +0200 Subject: [PATCH] flvdemux: Don't use WARNING for not-linked flow return Pollutes debug logs for no reason. It's only an error if all pads return not-linked --- gst/flv/gstflvdemux.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index 7d13893..212d18a 100644 --- a/gst/flv/gstflvdemux.c +++ b/gst/flv/gstflvdemux.c @@ -1180,12 +1180,12 @@ gst_flv_demux_parse_tag_audio (GstFlvDemux * demux, GstBuffer * buffer) demux->audio_done = TRUE; ret = GST_FLOW_OK; } else { - GST_WARNING_OBJECT (demux, "failed pushing a %" G_GUINT64_FORMAT - " bytes audio buffer: %s", demux->tag_data_size, - gst_flow_get_name (ret)); if (ret == GST_FLOW_NOT_LINKED) { demux->audio_linked = FALSE; - } + } else + GST_WARNING_OBJECT (demux, "failed pushing a %" G_GUINT64_FORMAT + " bytes audio buffer: %s", demux->tag_data_size, + gst_flow_get_name (ret)); goto beach; } } @@ -1574,12 +1574,12 @@ gst_flv_demux_parse_tag_video (GstFlvDemux * demux, GstBuffer * buffer) demux->video_done = TRUE; ret = GST_FLOW_OK; } else { - GST_WARNING_OBJECT (demux, "failed pushing a %" G_GUINT64_FORMAT - " bytes video buffer: %s", demux->tag_data_size, - gst_flow_get_name (ret)); - if (ret == GST_FLOW_NOT_LINKED) { + if (ret == GST_FLOW_NOT_LINKED) demux->video_linked = FALSE; - } + else + GST_WARNING_OBJECT (demux, "failed pushing a %" G_GUINT64_FORMAT + " bytes video buffer: %s", demux->tag_data_size, + gst_flow_get_name (ret)); goto beach; } } -- 2.7.4