diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-05 16:31:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-08-05 16:31:17 +0200 |
commit | e0dd72afcb21d8addc594699888898c51ceb01ec (patch) | |
tree | 49aaafdfb021d33561bb9a3a37e48830260a9a88 /src/utils | |
parent | f57b9153a844f3026af1d90b0d56e038f49ff54e (diff) |
fix error path (spotted by Coling Guthrie)
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/padsp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c index d650707e..c82fde64 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); |