From: Peter Meerwald <[email protected]>

Signed-off-by: Peter Meerwald <[email protected]>
Cc: David Henningsson <[email protected]>
---
 src/pulse/context.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/pulse/context.c b/src/pulse/context.c
index b8ebced..ff94543 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -360,6 +360,10 @@ static void handle_srbchannel_memblock(pa_context *c, 
pa_memblock *memblock) {
     c->srb_template.memblock = memblock;
     pa_memblock_ref(memblock);
     sr = pa_srbchannel_new_from_template(c->mainloop, &c->srb_template);
+    if (!sr) {
+        pa_context_fail(c, PA_ERR_PROTOCOL);
+        return;
+    }
 
     /* Ack the enable command */
     t = pa_tagstruct_new(NULL, 0);
-- 
1.7.9.5

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to