mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
Fix error messages for failure connecting streams.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1419 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
521daf6f0a
commit
19bd9148c5
1 changed files with 10 additions and 2 deletions
|
|
@ -909,7 +909,15 @@ static void stream_state_cb(pa_stream *s, void * userdata) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PA_STREAM_FAILED:
|
case PA_STREAM_FAILED:
|
||||||
debug(DEBUG_LEVEL_NORMAL, __FILE__": pa_stream_connect_playback() failed: %s\n", pa_strerror(pa_context_errno(i->context)));
|
if (s == i->play_stream) {
|
||||||
|
debug(DEBUG_LEVEL_NORMAL,
|
||||||
|
__FILE__": pa_stream_connect_playback() failed: %s\n",
|
||||||
|
pa_strerror(pa_context_errno(i->context)));
|
||||||
|
} else if (s == i->rec_stream) {
|
||||||
|
debug(DEBUG_LEVEL_NORMAL,
|
||||||
|
__FILE__": pa_stream_connect_record() failed: %s\n",
|
||||||
|
pa_strerror(pa_context_errno(i->context)));
|
||||||
|
}
|
||||||
fd_info_shutdown(i);
|
fd_info_shutdown(i);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -981,7 +989,7 @@ static int create_record_stream(fd_info *i) {
|
||||||
attr.fragsize = i->fragment_size;
|
attr.fragsize = i->fragment_size;
|
||||||
|
|
||||||
if (pa_stream_connect_record(i->rec_stream, NULL, &attr, PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE) < 0) {
|
if (pa_stream_connect_record(i->rec_stream, NULL, &attr, PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE) < 0) {
|
||||||
debug(DEBUG_LEVEL_NORMAL, __FILE__": pa_stream_connect_playback() failed: %s\n", pa_strerror(pa_context_errno(i->context)));
|
debug(DEBUG_LEVEL_NORMAL, __FILE__": pa_stream_connect_record() failed: %s\n", pa_strerror(pa_context_errno(i->context)));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue