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:
Andrey Volk 2020-02-26 23:49:32 +04:00 committed by GitHub
commit 1b07e629c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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));