plugins/elements/gsttypefindelement.c: 'have-type' signal needs to be G_SIGNAL_RUN_FI...
authorTim-Philipp Müller <tim@centricular.net>
Wed, 18 Jan 2006 16:31:49 +0000 (16:31 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 18 Jan 2006 16:31:49 +0000 (16:31 +0000)
Original commit message from CVS:
* plugins/elements/gsttypefindelement.c:
(gst_type_find_element_class_init):
'have-type' signal needs to be G_SIGNAL_RUN_FIRST, as it is the
object method handler that sets the caps on the pad and we want
that to happen before we emit the signal (fixes e.g. feeding a
plain text file to decodebin).

ChangeLog
plugins/elements/gsttypefindelement.c

index 7c208cf..2711bac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-01-18  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * plugins/elements/gsttypefindelement.c:
+       (gst_type_find_element_class_init):
+         'have-type' signal needs to be G_SIGNAL_RUN_FIRST, as it is the
+         object method handler that sets the caps on the pad and we want
+         that to happen before we emit the signal (fixes e.g. feeding a
+         plain text file to decodebin).
+
 2006-01-18  Christian Schaller  <Christian@fluendo.com>
 
        * gst/gstplugin.c: Add MPL and Proprietary as license options
index e7024cc..f3bb9cf 100644 (file)
@@ -201,7 +201,7 @@ gst_type_find_element_class_init (GstTypeFindElementClass * typefind_class)
    * been found.
    */
   gst_type_find_element_signals[HAVE_TYPE] = g_signal_new ("have_type",
-      G_TYPE_FROM_CLASS (typefind_class), G_SIGNAL_RUN_LAST,
+      G_TYPE_FROM_CLASS (typefind_class), G_SIGNAL_RUN_FIRST,
       G_STRUCT_OFFSET (GstTypeFindElementClass, have_type), NULL, NULL,
       gst_marshal_VOID__UINT_BOXED, G_TYPE_NONE, 2,
       G_TYPE_UINT, GST_TYPE_CAPS | G_SIGNAL_TYPE_STATIC_SCOPE);