mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
playbin2: Fix segfault on notify after group change.
If our group has been switched, then we get a selector active-pad notification, we don't need to notify.
This commit is contained in:
parent
a264efc627
commit
41314315c7
1 changed files with 6 additions and 0 deletions
|
@ -1627,6 +1627,12 @@ selector_active_pad_changed (GObject * selector, GParamSpec * pspec,
|
|||
}
|
||||
}
|
||||
|
||||
/* We got a pad-change after our group got switched out; no need to notify */
|
||||
if (!select) {
|
||||
GST_PLAY_BIN_UNLOCK (playbin);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (select->type) {
|
||||
case GST_PLAY_SINK_TYPE_VIDEO:
|
||||
case GST_PLAY_SINK_TYPE_VIDEO_RAW:
|
||||
|
|
Loading…
Reference in a new issue