Commit b7d43591 authored by Sebastian Dröge's avatar Sebastian Dröge

auto{audio,video}sink: Don't lose the GST_ELEMENT_IS_SINK flag after removing the child

parent 055586f2
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment