mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
playsink: make sure we remain a sink
When we remove our elements, we could lose our sink flag. Make sure we remain a sink by setting the flag again after removing elements.
This commit is contained in:
parent
bbb531619c
commit
65773b58dd
1 changed files with 4 additions and 1 deletions
|
@ -720,8 +720,11 @@ add_chain (GstPlayChain * chain, gboolean add)
|
|||
|
||||
if (add)
|
||||
gst_bin_add (GST_BIN_CAST (chain->playsink), chain->bin);
|
||||
else
|
||||
else {
|
||||
gst_bin_remove (GST_BIN_CAST (chain->playsink), chain->bin);
|
||||
/* we don't want to lose our sink status */
|
||||
GST_OBJECT_FLAG_SET (chain->playsink, GST_ELEMENT_IS_SINK);
|
||||
}
|
||||
|
||||
chain->added = add;
|
||||
|
||||
|
|
Loading…
Reference in a new issue