diff --git a/ChangeLog b/ChangeLog index 36bf91e1e7..834cfa65c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-19 Tim-Philipp Müller + + * 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 * libs/gst/base/gstbasesrc.c: (gst_base_src_get_range), diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 5057476228..6d7974f34e 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -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;