[gst-devel] Re: [gst-cvs] ensonic gstreamer: gstreamer/ gstreamer/gst/ gstreamer/plugins/elements/
Tim Müller
t.i.m at zen.co.uk
Fri Apr 28 12:47:04 CEST 2006
On Fri, 2006-04-28 at 18:55 +0000, Stefan Kost wrote:
Hi Stefan,
> Log message:
> * plugins/elements/gsttypefindelement.c:
> (gst_type_find_element_handle_event):
> make GstElementDetails const
...
> diff -u -d -r1.78 -r1.79
> --- gsttypefindelement.c 28 Apr 2006 13:43:03 -0000 1.78
> +++ gsttypefindelement.c 28 Apr 2006 18:55:17 -0000 1.79
> @@ -63,7 +63,7 @@
> GST_DEBUG_CATEGORY_STATIC (gst_type_find_element_debug);
> #define GST_CAT_DEFAULT gst_type_find_element_debug
> -static GstElementDetails gst_type_find_element_details =
> +static const GstElementDetails gst_type_find_element_details =
> GST_ELEMENT_DETAILS ("TypeFind",
> "Finds the media type of a stream",
> @@ -476,16 +476,17 @@
> if (typefind->store) {
> caps = gst_type_find_helper_for_buffer (GST_OBJECT (typefind),
> typefind->store, &prob);
> - }
> - if (caps && prob >= typefind->min_probability) {
> - g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],
> - 0, prob, caps);
> - } else {
> - GST_ELEMENT_ERROR (typefind, STREAM, TYPE_NOT_FOUND,
> - (NULL), (NULL));
> + if (caps && prob >= typefind->min_probability) {
> + g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],
> + 0, prob, caps);
> + } else {
> + GST_ELEMENT_ERROR (typefind, STREAM, TYPE_NOT_FOUND,
> + (NULL), (NULL));
> + }
> + gst_caps_replace (&caps, NULL);
> }
> - gst_caps_replace (&caps, NULL);
> stop_typefinding (typefind);
> res = gst_pad_event_default (pad, event);
> break;
>
The last change isn't mentioned in the ChangeLog - did you really mean
to commit that?
(I hope not, because it doesn't seem entirely correct, as with it
typefind won't throw a TYPE_NOT_FOUND error message any longer when an
EOS is received but no data has been received so far. Mike has already
fixed the issue of initializing caps to NULL here earlier in case your
fix was supposed to be for the same issue).
Cheers
-Tim
More information about the gstreamer-devel
mailing list