resindvd: Set the new initial-identity property on autoconvert
authorJan Schmidt <thaytan@noraisin.net>
Sat, 24 Oct 2009 13:29:33 +0000 (14:29 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Tue, 27 Oct 2009 12:23:24 +0000 (12:23 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=599469

ext/resindvd/rsndec.c

index 3abc0065c72b5428a059fd5b7591273d1eff4091..7db1e46eb3215f3c3e8513dfa137470b91f4cf92 100644 (file)
@@ -277,7 +277,8 @@ rsn_dec_change_state (GstElement * element, GstStateChange transition)
 
       new_child = gst_element_factory_make ("autoconvert", NULL);
       decoder_factories = klass->get_decoder_factories (klass);
-      g_object_set (G_OBJECT (new_child), "factories", decoder_factories, NULL);
+      g_object_set (G_OBJECT (new_child), "initial-identity", TRUE,
+          "factories", decoder_factories, NULL);
       if (new_child == NULL || !rsn_dec_set_child (self, new_child))
         ret = GST_STATE_CHANGE_FAILURE;
       break;