mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
gst/id3demux/gstid3demux.c: Let core insert default error message for TYPE_NOT_FOUND errors, it's just as good as our...
Original commit message from CVS: * gst/id3demux/gstid3demux.c: (gst_id3demux_chain), (gst_id3demux_sink_activate): Let core insert default error message for TYPE_NOT_FOUND errors, it's just as good as our own and has the added bonus of being translated.
This commit is contained in:
parent
5c1e2a1e44
commit
2b4ba77c27
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
2006-05-02 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/id3demux/gstid3demux.c: (gst_id3demux_chain),
|
||||
(gst_id3demux_sink_activate):
|
||||
Let core insert default error message for TYPE_NOT_FOUND
|
||||
errors, it's just as good as our own and has the added
|
||||
bonus of being translated.
|
||||
|
||||
2006-05-02 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/apetag/gsttagdemux.c: (gst_tag_demux_init),
|
||||
|
|
|
@ -460,8 +460,7 @@ gst_id3demux_chain (GstPad * pad, GstBuffer * buf)
|
|||
}
|
||||
|
||||
/* We failed typefind */
|
||||
GST_ELEMENT_ERROR (id3demux, STREAM, TYPE_NOT_FOUND,
|
||||
("Could not determine the mime type of the file"),
|
||||
GST_ELEMENT_ERROR (id3demux, STREAM, TYPE_NOT_FOUND, (NULL),
|
||||
("Could not detect type for contents within an ID3 tag"));
|
||||
gst_buffer_unref (typefind_buf);
|
||||
gst_buffer_unref (id3demux->collect);
|
||||
|
@ -880,8 +879,7 @@ gst_id3demux_sink_activate (GstPad * sinkpad)
|
|||
|
||||
/* 5 - If we didn't find the caps, fail */
|
||||
if (caps == NULL) {
|
||||
GST_ELEMENT_ERROR (id3demux, STREAM, TYPE_NOT_FOUND,
|
||||
("Could not determine the mime type of the file"),
|
||||
GST_ELEMENT_ERROR (id3demux, STREAM, TYPE_NOT_FOUND, (NULL),
|
||||
("Could not detect type for contents within an ID3 tag"));
|
||||
goto done_activate;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue