]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
set the maximum buffer length and source members for frames returned from portaudio...
authorMoises Silva <moises.silva@gmail.com>
Sat, 30 Apr 2011 12:33:32 +0000 (08:33 -0400)
committerMoises Silva <moises.silva@gmail.com>
Sat, 30 Apr 2011 12:33:32 +0000 (08:33 -0400)
src/mod/endpoints/mod_portaudio/mod_portaudio.c

index 21e912e968c68c2ef559bde2a28951d0ffb68bb4..577da2d131ed0847693aac4f0fc2d7147b00cbef 100644 (file)
@@ -831,6 +831,8 @@ static switch_status_t channel_endpoint_read(audio_endpoint_t *endpoint, switch_
        }
 
        endpoint->read_frame.data = endpoint->read_buf;
+       endpoint->read_frame.buflen = sizeof(endpoint->read_buf);
+       endpoint->read_frame.source = __FILE__;
        samples = ReadAudioStream(endpoint->in_stream->stream, 
                        endpoint->read_frame.data, STREAM_SAMPLES_PER_PACKET(endpoint->in_stream), 
                        endpoint->inchan, &endpoint->read_timer);