playback: class_ref() some types so we can create multiple playback elements at the...
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 3 Oct 2012 10:37:33 +0000 (11:37 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 3 Oct 2012 10:48:25 +0000 (11:48 +0100)
Should fix "cannot register existing type `GstPlaybinSelectorPad'" warnings
and subsequent errors when creating multiple players at the same time.

Conflicts:
gst/playback/gststreamselector.c

gst/playback/gstdecodebin2.c
gst/playback/gstplaysink.c

index 43f6a8b..a4148ef 100644 (file)
@@ -929,6 +929,8 @@ gst_decode_bin_class_init (GstDecodeBinClass * klass)
 
   gstbin_klass->handle_message =
       GST_DEBUG_FUNCPTR (gst_decode_bin_handle_message);
+
+  g_type_class_ref (GST_TYPE_DECODE_PAD);
 }
 
 gint
index 9ad0603..36fc5da 100644 (file)
@@ -627,6 +627,9 @@ gst_play_sink_class_init (GstPlaySinkClass * klass)
 
   _playsink_reset_segment_event_marker_id =
       g_quark_from_static_string ("gst-playsink-reset-segment-event-marker");
+
+  g_type_class_ref (GST_TYPE_STREAM_SYNCHRONIZER);
+  g_type_class_ref (GST_TYPE_COLOR_BALANCE_CHANNEL);
 }
 
 static void