The typefind element now sets the caps on its sink pad when the type has been detected.
authorWim Taymans <wim.taymans@gmail.com>
Tue, 13 Mar 2001 22:13:56 +0000 (22:13 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 13 Mar 2001 22:13:56 +0000 (22:13 +0000)
Original commit message from CVS:
The typefind element now sets the caps on its sink pad when the type
has been detected.

gst/gsttypefind.c

index 279a2fe..78ac04c 100644 (file)
@@ -184,6 +184,7 @@ gst_typefind_chain (GstPad *pad, GstBuffer *buf)
        typefind->caps = caps;
         gtk_signal_emit (GTK_OBJECT (typefind), gst_typefind_signals[HAVE_TYPE],
                              typefind->caps);
+       gst_pad_set_caps (pad, caps);
         goto end;
       }
       funcs = g_slist_next (funcs);