mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
playback: ref the selector pad class inside input-selector
Minimizes the delta to original element in -bad and allows us to keep the type static.
This commit is contained in:
parent
d03fc85095
commit
c45b9d4aef
3 changed files with 4 additions and 3 deletions
|
@ -146,7 +146,7 @@ static GstFlowReturn gst_selector_pad_chain (GstPad * pad, GstBuffer * buf);
|
|||
static GstFlowReturn gst_selector_pad_bufferalloc (GstPad * pad,
|
||||
guint64 offset, guint size, GstCaps * caps, GstBuffer ** buf);
|
||||
|
||||
GType
|
||||
static GType
|
||||
gst_selector_pad_get_type (void)
|
||||
{
|
||||
static GType selector_pad_type = 0;
|
||||
|
@ -758,6 +758,9 @@ gst_input_selector_class_init (GstInputSelectorClass * klass)
|
|||
|
||||
parent_class = g_type_class_peek_parent (klass);
|
||||
|
||||
/* FIXME: remove after confirming it is safe now */
|
||||
g_type_class_ref (gst_selector_pad_get_type ());
|
||||
|
||||
gobject_class->dispose = gst_input_selector_dispose;
|
||||
|
||||
gobject_class->set_property = gst_input_selector_set_property;
|
||||
|
|
|
@ -78,7 +78,6 @@ struct _GstInputSelectorClass {
|
|||
};
|
||||
|
||||
GType gst_input_selector_get_type (void);
|
||||
GType gst_selector_pad_get_type (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -3552,7 +3552,6 @@ gst_play_bin2_plugin_init (GstPlugin * plugin)
|
|||
GST_DEBUG_CATEGORY_INIT (gst_play_bin_debug, "playbin2", 0, "play bin");
|
||||
|
||||
g_type_class_ref (gst_input_selector_get_type ());
|
||||
g_type_class_ref (gst_selector_pad_get_type ());
|
||||
|
||||
return gst_element_register (plugin, "playbin2", GST_RANK_NONE,
|
||||
GST_TYPE_PLAY_BIN);
|
||||
|
|
Loading…
Reference in a new issue