[vlc-commits] vlm: remove redundant preparser log header

Rémi Denis-Courmont git at videolan.org
Wed Feb 20 16:36:15 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb 19 22:10:33 2019 +0200| [022a73698b498b9f8f4da39f2ffe116e45d0132c] | committer: Rémi Denis-Courmont

vlm: remove redundant preparser log header

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=022a73698b498b9f8f4da39f2ffe116e45d0132c
---

 src/input/vlm.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/input/vlm.c b/src/input/vlm.c
index d8f079758c..0ca6829345 100644
--- a/src/input/vlm.c
+++ b/src/input/vlm.c
@@ -580,7 +580,6 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
             /* Pre-parse the input */
             input_thread_t *p_input;
             char *psz_output;
-            char *psz_header;
             char *psz_dup;
 
             input_item_Release( p_media->vod.p_item );
@@ -615,14 +614,11 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
                 input_item_AddOption( p_media->vod.p_item,
                                       p_cfg->ppsz_option[i], VLC_INPUT_OPTION_TRUSTED );
 
-            if( asprintf( &psz_header, _("Media: %s"), p_cfg->psz_name ) == -1 )
-                psz_header = NULL;
-
             sout_description_data_t data;
             TAB_INIT(data.i_es, data.es);
 
             p_input = input_Create( p_media, input_LegacyEvents, NULL,
-                                    p_media->vod.p_item, psz_header, NULL, NULL );
+                                    p_media->vod.p_item, NULL, NULL, NULL );
             if( p_input )
             {
                 vlc_sem_t sem_preparse;
@@ -648,7 +644,6 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media )
                 input_Close( p_input );
                 vlc_sem_destroy( &sem_preparse );
             }
-            free( psz_header );
 
             /* XXX: Don't do it that way, but properly use a new input item ref. */
             input_item_t item = *p_media->vod.p_item;;



More information about the vlc-commits mailing list