libs/gst/base/gstbasesrc.c: Use right error code when typefinding fails, so we can use the default (translated) error...

Original commit message from CVS:
* libs/gst/base/gstbasesrc.c: (gst_base_src_start):
Use right error code when typefinding fails, so we can use
the default (translated) error messages.
This commit is contained in:
Tim-Philipp Müller 2008-05-19 10:29:57 +00:00
parent 638ecae590
commit 8ccf150874
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-05-19 Tim-Philipp Müller <tim.muller at collabora co uk>
* libs/gst/base/gstbasesrc.c: (gst_base_src_start):
Use right error code when typefinding fails, so we can use
the default (translated) error messages.
2008-05-19 Wim Taymans <wim.taymans@collabora.co.uk>
* libs/gst/base/gstbasesrc.c: (gst_base_src_get_range),

View file

@ -2413,9 +2413,7 @@ could_not_negotiate:
typefind_failed:
{
GST_DEBUG_OBJECT (basesrc, "could not typefind, stopping");
GST_ELEMENT_ERROR (basesrc, STREAM, FORMAT,
("Could not determine media type"),
("Add support for this media type"));
GST_ELEMENT_ERROR (basesrc, STREAM, TYPE_NOT_FOUND, (NULL), (NULL));
/* we must call stop */
gst_base_src_stop (basesrc);
return FALSE;