don't access stream before it is valid

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2439 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-05-15 23:16:28 +00:00
parent 74f8a67e98
commit 99a451655a

View file

@ -370,7 +370,7 @@ void pa_command_stream_moved(pa_pdispatch *pd, uint32_t command, PA_GCC_UNUSED u
if (c->version >= 13) { if (c->version >= 13) {
if (s->direction == PA_STREAM_RECORD) { if (command == PA_COMMAND_RECORD_STREAM_MOVED) {
if (pa_tagstruct_getu32(t, &maxlength) < 0 || if (pa_tagstruct_getu32(t, &maxlength) < 0 ||
pa_tagstruct_getu32(t, &fragsize) < 0 || pa_tagstruct_getu32(t, &fragsize) < 0 ||
pa_tagstruct_get_usec(t, &usec) < 0) { pa_tagstruct_get_usec(t, &usec) < 0) {