mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
fix error path (spotted by Coling Guthrie)
This commit is contained in:
parent
f57b9153a8
commit
e0dd72afcb
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue