From 41314315c7820956b7a5aaf71850ec0cce815c67 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 10 Feb 2009 17:16:07 -0800 Subject: [PATCH] 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. --- gst/playback/gstplaybin2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 1eb7501..b86b03d 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -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: -- 2.7.4