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:
Michael Smith 2009-02-10 17:16:07 -08:00
parent a264efc627
commit 41314315c7

View file

@ -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: