mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
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:
parent
638ecae590
commit
8ccf150874
2 changed files with 7 additions and 3 deletions
|
@ -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>
|
2008-05-19 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* libs/gst/base/gstbasesrc.c: (gst_base_src_get_range),
|
* libs/gst/base/gstbasesrc.c: (gst_base_src_get_range),
|
||||||
|
|
|
@ -2413,9 +2413,7 @@ could_not_negotiate:
|
||||||
typefind_failed:
|
typefind_failed:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (basesrc, "could not typefind, stopping");
|
GST_DEBUG_OBJECT (basesrc, "could not typefind, stopping");
|
||||||
GST_ELEMENT_ERROR (basesrc, STREAM, FORMAT,
|
GST_ELEMENT_ERROR (basesrc, STREAM, TYPE_NOT_FOUND, (NULL), (NULL));
|
||||||
("Could not determine media type"),
|
|
||||||
("Add support for this media type"));
|
|
||||||
/* we must call stop */
|
/* we must call stop */
|
||||||
gst_base_src_stop (basesrc);
|
gst_base_src_stop (basesrc);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue