mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
auto{audio,video}sink: Don't lose the GST_ELEMENT_IS_SINK flag after removing the child
This commit is contained in:
parent
055586f2d9
commit
b7d435911f
2 changed files with 4 additions and 0 deletions
|
@ -133,6 +133,8 @@ gst_auto_audio_sink_clear_kid (GstAutoAudioSink * sink)
|
|||
gst_element_set_state (sink->kid, GST_STATE_NULL);
|
||||
gst_bin_remove (GST_BIN (sink), sink->kid);
|
||||
sink->kid = NULL;
|
||||
/* Don't lose the SINK flag */
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -130,6 +130,8 @@ gst_auto_video_sink_clear_kid (GstAutoVideoSink * sink)
|
|||
gst_element_set_state (sink->kid, GST_STATE_NULL);
|
||||
gst_bin_remove (GST_BIN (sink), sink->kid);
|
||||
sink->kid = NULL;
|
||||
/* Don't lose the SINK flag */
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue