Value stored to 'codec_ms' is never read.
for (previous = globals.stream_list; previous && previous->next && previous->next != stream; previous = previous->next) {
;
}
- previous->next = stream->next;
+ if (previous) {
+ previous->next = stream->next;
+ }
}
if (! already_locked) {
switch_mutex_unlock(globals.streams_lock);
}
if (outbound_profile->destination_number && !strncasecmp(outbound_profile->destination_number, "endpoint", sizeof("endpoint")-1)) {
- codec_ms = -1;
endpoint = NULL;
endpoint_name = switch_core_strdup(outbound_profile->pool, outbound_profile->destination_number);
endpoint_name = strchr(endpoint_name, '/');