[PATCH] loopback: Fix crash when moving sink-input fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
A similar recent patch has been integrated on the source-output part.
This is like the tree hiding the forest, expect more fixes ;)

 src/modules/module-loopback.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c
index 1f2ef91..74231a3 100644
--- a/src/modules/module-loopback.c
+++ b/src/modules/module-loopback.c
@@ -601,6 +601,8 @@ static void sink_input_moving_cb(pa_sink_input *i, pa_sink *dest) {
     struct userdata *u;
     pa_proplist *p;
     const char *n;
+    if (!dest)
+        return;
 
     pa_sink_input_assert_ref(i);
     pa_assert_ctl_context();
-- 
1.7.5.4



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux