From: Lennart Poettering Date: Tue, 5 Aug 2008 14:31:17 +0000 (+0200) Subject: fix error path (spotted by Coling Guthrie) X-Git-Tag: v0.9.12~12^2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0dd72afcb21d8addc594699888898c51ceb01ec;p=platform%2Fupstream%2Fpulseaudio.git fix error path (spotted by Coling Guthrie) --- diff --git a/src/utils/padsp.c b/src/utils/padsp.c index d650707ee..c82fde64f 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -2250,7 +2250,7 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno) for (;;) { pa_usec_t usec; - PLAYBACK_STREAM_CHECK_DEAD_GOTO(i, exit_loop); + PLAYBACK_STREAM_CHECK_DEAD_GOTO(i, exit_loop2); if (pa_stream_get_time(i->play_stream, &usec) >= 0) { size_t k = pa_usec_to_bytes(usec, &i->sample_spec); @@ -2272,6 +2272,8 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno) pa_threaded_mainloop_wait(i->mainloop); } + exit_loop2: + pa_threaded_mainloop_unlock(i->mainloop); debug(DEBUG_LEVEL_NORMAL, __FILE__": GETOPTR bytes=%i, blocks=%i, ptr=%i\n", info->bytes, info->blocks, info->ptr);