Commit c56ae63c authored by Simon Latapie's avatar Simon Latapie

* vlm.c: little bug fix for stop command

parent ca30e8da
...@@ -1009,20 +1009,23 @@ static int vlm_MediaControl( vlm_t *vlm, vlm_media_t *media, char *psz_name, cha ...@@ -1009,20 +1009,23 @@ static int vlm_MediaControl( vlm_t *vlm, vlm_media_t *media, char *psz_name, cha
{ {
int i; int i;
input_StopThread( media->p_input ); if( media->p_input )
input_DestroyThread( media->p_input );
vlc_object_detach( media->p_input );
vlc_object_destroy( media->p_input );
media->p_input = NULL;
for( i=0 ; i < media->i_input_option ; i++ )
{ {
free( media->input_option[i] ); input_StopThread( media->p_input );
} input_DestroyThread( media->p_input );
if( media->input_option) free( media->input_option ); vlc_object_detach( media->p_input );
vlc_object_destroy( media->p_input );
media->p_input = NULL;
media->input_option = NULL; for( i=0 ; i < media->i_input_option ; i++ )
media->i_input_option = 0; {
free( media->input_option[i] );
}
if( media->input_option) free( media->input_option );
media->input_option = NULL;
media->i_input_option = 0;
}
return 0; return 0;
} }
......
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