From: Mark Nauwelaerts Date: Mon, 6 Jun 2011 12:41:41 +0000 (+0200) Subject: tagdemux: no input data implies no type can be found X-Git-Tag: 1.19.3~511^2~6555^2~812 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ed90ffc2c694a9e0569d34d8a46e7006bee3e05;p=platform%2Fupstream%2Fgstreamer.git tagdemux: no input data implies no type can be found ... and posting a proper error message to this effect is appropriately informative and prevents auto-plugging otherwise stalling. --- diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c index 8bb3314..893989a 100644 --- a/gst-libs/gst/tag/gsttagdemux.c +++ b/gst-libs/gst/tag/gsttagdemux.c @@ -1196,7 +1196,9 @@ gst_tag_demux_sink_activate (GstPad * sinkpad) demux->priv->strip_start + demux->priv->strip_end) { /* There was no data (probably due to a truncated file) */ GST_DEBUG_OBJECT (demux, "No data in file"); - return FALSE; + /* so we don't know about type either */ + GST_ELEMENT_ERROR (demux, STREAM, TYPE_NOT_FOUND, (NULL), (NULL)); + goto done_activate; } /* 3 - Do typefinding on data */