playback: class_ref() some types so we can create multiple playback elements at the same time

Should fix "cannot register existing type `GstPlaybinSelectorPad'" warnings
and subsequent errors when creating multiple players at the same time.

Conflicts:
	gst/playback/gststreamselector.c
This commit is contained in:
Tim-Philipp Müller 2012-10-03 11:37:33 +01:00
parent 9d59b789c7
commit 81097f485a
2 changed files with 5 additions and 0 deletions

View 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

View 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