Commit cdbc7092 authored by Gildas Bazin's avatar Gildas Bazin

* src/libvlc.h: --video-deco is enabled by default.

* src/input/input.c: fixed small memory leak.
parent 9cef330d
...@@ -61,7 +61,7 @@ static void UpdateItemLength( input_thread_t *, int64_t i_length ); ...@@ -61,7 +61,7 @@ static void UpdateItemLength( input_thread_t *, int64_t i_length );
static void ParseOption( input_thread_t *p_input, const char *psz_option ); static void ParseOption( input_thread_t *p_input, const char *psz_option );
static void DecodeUrl ( char * ); static void DecodeUrl( char * );
static void MRLSplit( input_thread_t *, char *, char **, char **, char ** ); static void MRLSplit( input_thread_t *, char *, char **, char **, char ** );
static void MRLSections( input_thread_t *, char *, int *, int *, int *, int *); static void MRLSections( input_thread_t *, char *, int *, int *, int *, int *);
...@@ -740,8 +740,8 @@ static int Init( input_thread_t * p_input ) ...@@ -740,8 +740,8 @@ static int Init( input_thread_t * p_input )
} }
psz = psz_delim; psz = psz_delim;
} }
free( psz );
} }
if( psz ) free( psz );
/* Set up es_out */ /* Set up es_out */
es_out_Control( p_input->p_es_out, ES_OUT_SET_ACTIVE, VLC_TRUE ); es_out_Control( p_input->p_es_out, ES_OUT_SET_ACTIVE, VLC_TRUE );
......
...@@ -886,7 +886,7 @@ vlc_module_begin(); ...@@ -886,7 +886,7 @@ vlc_module_begin();
add_bool( "video-on-top", 0, NULL, VIDEO_ON_TOP_TEXT, add_bool( "video-on-top", 0, NULL, VIDEO_ON_TOP_TEXT,
VIDEO_ON_TOP_LONGTEXT, VLC_FALSE ); VIDEO_ON_TOP_LONGTEXT, VLC_FALSE );
add_bool( "video-deco", 0, NULL, VIDEO_DECO_TEXT, add_bool( "video-deco", 1, NULL, VIDEO_DECO_TEXT,
VIDEO_DECO_LONGTEXT, VLC_TRUE ); VIDEO_DECO_LONGTEXT, VLC_TRUE );
add_module( "filter", "video filter", NULL, NULL, add_module( "filter", "video filter", NULL, NULL,
FILTER_TEXT, FILTER_LONGTEXT, VLC_FALSE ); FILTER_TEXT, FILTER_LONGTEXT, VLC_FALSE );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment