fix error path (spotted by Coling Guthrie)

This commit is contained in:
Lennart Poettering 2008-08-05 16:31:17 +02:00
parent f57b9153a8
commit e0dd72afcb

View file

@ -2250,7 +2250,7 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno)
for (;;) { for (;;) {
pa_usec_t usec; 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) { if (pa_stream_get_time(i->play_stream, &usec) >= 0) {
size_t k = pa_usec_to_bytes(usec, &i->sample_spec); 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); pa_threaded_mainloop_wait(i->mainloop);
} }
exit_loop2:
pa_threaded_mainloop_unlock(i->mainloop); 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); debug(DEBUG_LEVEL_NORMAL, __FILE__": GETOPTR bytes=%i, blocks=%i, ptr=%i\n", info->bytes, info->blocks, info->ptr);