pulsesink: fix crash when getting the current-device in NULL->READY

The "goto unlock" is wrong as in this code path we haven't take the lock yet.
Fixes #724619
This commit is contained in:
Stefan Sauer 2014-02-18 11:28:18 +01:00
parent 2b15ae4ecd
commit 3abad7af66

View file

@ -2788,7 +2788,7 @@ no_mainloop:
no_buffer: no_buffer:
{ {
GST_DEBUG_OBJECT (pulsesink, "we have no ringbuffer"); GST_DEBUG_OBJECT (pulsesink, "we have no ringbuffer");
goto unlock; return NULL;
} }
info_failed: info_failed:
{ {