Merge pull request #430 from dragos-oancea/mod_vlc-vcontext-val-never-read
[mod_vlc] scan-build: Value stored to 'vcontext' is never read - vlc_file_av_open()
This commit is contained in:
commit
1b07e629c5
|
@ -683,10 +683,6 @@ static switch_status_t vlc_file_av_open(switch_file_handle_t *handle, const char
|
||||||
vlc_file_context_t *acontext = handle->private_info;
|
vlc_file_context_t *acontext = handle->private_info;
|
||||||
vlc_video_context_t *vcontext;
|
vlc_video_context_t *vcontext;
|
||||||
|
|
||||||
if (acontext) {
|
|
||||||
vcontext = acontext->vcontext;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "VLC open %s for reading\n", acontext->path);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "VLC open %s for reading\n", acontext->path);
|
||||||
|
|
||||||
vcontext = switch_core_alloc(acontext->pool, sizeof(vlc_video_context_t));
|
vcontext = switch_core_alloc(acontext->pool, sizeof(vlc_video_context_t));
|
||||||
|
|
Loading…
Reference in New Issue