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

This commit is contained in:
Sebastian Dröge 2010-06-09 20:22:30 +02:00
parent 055586f2d9
commit b7d435911f
2 changed files with 4 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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);
}
}