fix recording

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2387 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-05-07 21:10:19 +00:00
parent 21fa1cf857
commit 7b5c6a34e2

View file

@ -1263,7 +1263,8 @@ static void stream_get_timing_info_callback(pa_pdispatch *pd, uint32_t command,
goto finish;
}
if (o->context->version >= 13)
if (o->context->version >= 13 &&
o->stream->direction == PA_STREAM_PLAYBACK)
if (pa_tagstruct_getu64(t, &underrun_for) < 0 ||
pa_tagstruct_getu64(t, &playing_for) < 0) {