mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-22 11:53:16 +00:00
Merge pull request #421 from signalwire/mod_portaudio_stream
[mod_portaudio_stream] scan-build: Fix dead assignment.
This commit is contained in:
commit
b75a42728d
@ -248,7 +248,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
|||||||
{
|
{
|
||||||
portaudio_stream_source_t *source = obj;
|
portaudio_stream_source_t *source = obj;
|
||||||
portaudio_stream_context_t *cp;
|
portaudio_stream_context_t *cp;
|
||||||
int samples = 0;
|
int samples;
|
||||||
int bused, bytesToWrite;
|
int bused, bytesToWrite;
|
||||||
|
|
||||||
|
|
||||||
@ -282,7 +282,6 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
|||||||
source->ready = 0;
|
source->ready = 0;
|
||||||
} else {
|
} else {
|
||||||
while (globals.running && !source->stopped) {
|
while (globals.running && !source->stopped) {
|
||||||
samples = 0;
|
|
||||||
switch_mutex_lock(source->device_lock);
|
switch_mutex_lock(source->device_lock);
|
||||||
samples = ReadAudioStream(source->audio_stream, source->databuf,
|
samples = ReadAudioStream(source->audio_stream, source->databuf,
|
||||||
source->read_codec.implementation->samples_per_packet, 0, &source->timer);
|
source->read_codec.implementation->samples_per_packet, 0, &source->timer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user