summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Goffioul <michael.goffioul@gmail.com>2013-08-28 19:46:09 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-08-28 19:46:09 +0100
commit5af6f5bfb6c3619a9ccc3b1681579aeb90e8b89a (patch)
tree5ed9e1c35fc0344087c50e01c0e4249cf3b5ba39
parent2720105682681ef652ee42c1e5a59e20d8146f3d (diff)
downloadgstreamer-plugins-good-0.10.tar.gz
pulsesink: fix crash in webkit under rapid <audio> src switching0.10
https://bugzilla.gnome.org/show_bug.cgi?id=707008
-rw-r--r--ext/pulse/pulsesink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index 3da6231d3..211ea008d 100644
--- a/ext/pulse/pulsesink.c
+++ b/ext/pulse/pulsesink.c
@@ -2078,7 +2078,7 @@ gst_pulsesink_pad_acceptcaps (GstPad * pad, GstCaps * caps)
}
/* Either template caps didn't match, or we're still in NULL state */
- if (!ret || !pbuf->context)
+ if (!ret || !pbuf || !pbuf->context)
goto done;
/* If we've not got fixed caps, creating a stream might fail, so let's just