pulsesink: fix crash when getting the current-device in NULL->READY
authorStefan Sauer <ensonic@users.sf.net>
Tue, 18 Feb 2014 10:28:18 +0000 (11:28 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Tue, 18 Feb 2014 10:28:18 +0000 (11:28 +0100)
The "goto unlock" is wrong as in this code path we haven't take the lock yet.
Fixes #724619

ext/pulse/pulsesink.c

index 0c8ed4d..ec7d4ef 100644 (file)
@@ -2788,7 +2788,7 @@ no_mainloop:
 no_buffer:
   {
     GST_DEBUG_OBJECT (pulsesink, "we have no ringbuffer");
-    goto unlock;
+    return NULL;
   }
 info_failed:
   {