diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-02-12 10:46:23 +0100 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-02-12 10:51:20 +0100 |
commit | 6299a624337121b0941d0e8636e00238c189501a (patch) | |
tree | 1f6963fbdefcd628720b3fbd787f08e790dd3f82 /ext | |
parent | f4c741ef9c2721867b92c716f17c27fca091ed37 (diff) | |
download | gst-plugins-bad-6299a624337121b0941d0e8636e00238c189501a.tar.gz gst-plugins-bad-6299a624337121b0941d0e8636e00238c189501a.tar.bz2 gst-plugins-bad-6299a624337121b0941d0e8636e00238c189501a.zip |
metadata: also post error message when returning error
Diffstat (limited to 'ext')
-rw-r--r-- | ext/metadata/gstbasemetadata.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/metadata/gstbasemetadata.c b/ext/metadata/gstbasemetadata.c index 0e4eb512..4609013b 100644 --- a/ext/metadata/gstbasemetadata.c +++ b/ext/metadata/gstbasemetadata.c @@ -602,6 +602,10 @@ gst_base_metadata_parse (GstBaseMetadata * filter, const guint8 * buf, GST_ELEMENT_ERROR (filter, STREAM, TYPE_NOT_FOUND, (NULL), ("Only jpeg and png are supported")); goto done; + } else { + GST_ELEMENT_ERROR (filter, STREAM, FAILED, (NULL), + ("Failed to parse stream.")); + goto done; } } else if (ret == META_PARSING_NEED_MORE_DATA) { filter->need_more_data = TRUE; @@ -1143,6 +1147,7 @@ gst_base_metadata_calculate_offsets (GstBaseMetadata * base) if (base->state != MT_STATE_PARSED) { ret = FALSE; + GST_ELEMENT_ERROR (base, STREAM, FAILED, (NULL), ("Invalid state.")); goto done; } |