Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
b7d43591
Commit
b7d43591
authored
Jun 09, 2010
by
Sebastian Dröge
Browse files
auto{audio,video}sink: Don't lose the GST_ELEMENT_IS_SINK flag after removing the child
parent
055586f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
gst/autodetect/gstautoaudiosink.c
View file @
b7d43591
...
...
@@ -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
);
}
}
...
...
gst/autodetect/gstautovideosink.c
View file @
b7d43591
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment