Commit c7734fcc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

input: remove input_Join() and input_Release()

parent ce069b3e
...@@ -508,8 +508,6 @@ VLC_API int input_vaControl( input_thread_t *, int i_query, va_list ); ...@@ -508,8 +508,6 @@ VLC_API int input_vaControl( input_thread_t *, int i_query, va_list );
VLC_API int input_Control( input_thread_t *, int i_query, ... ); VLC_API int input_Control( input_thread_t *, int i_query, ... );
VLC_API void input_Close( input_thread_t * ); VLC_API void input_Close( input_thread_t * );
void input_Join( input_thread_t * );
void input_Release( input_thread_t * );
/** /**
* Get the input item for an input thread * Get the input item for an input thread
......
...@@ -248,17 +248,6 @@ void input_Stop( input_thread_t *p_input ) ...@@ -248,17 +248,6 @@ void input_Stop( input_thread_t *p_input )
input_ControlPush( p_input, INPUT_CONTROL_SET_DIE, NULL ); input_ControlPush( p_input, INPUT_CONTROL_SET_DIE, NULL );
} }
void input_Join( input_thread_t *p_input )
{
if( p_input->p->is_running )
vlc_join( p_input->p->thread, NULL );
}
void input_Release( input_thread_t *p_input )
{
vlc_object_release( p_input );
}
/** /**
* Close an input * Close an input
* *
...@@ -266,8 +255,9 @@ void input_Release( input_thread_t *p_input ) ...@@ -266,8 +255,9 @@ void input_Release( input_thread_t *p_input )
*/ */
void input_Close( input_thread_t *p_input ) void input_Close( input_thread_t *p_input )
{ {
input_Join( p_input ); if( p_input->p->is_running )
input_Release( p_input ); vlc_join( p_input->p->thread, NULL );
vlc_object_release( p_input );
} }
/** /**
......
...@@ -905,9 +905,7 @@ static void vlm_MediaInstanceDelete( vlm_t *p_vlm, int64_t id, vlm_media_instanc ...@@ -905,9 +905,7 @@ static void vlm_MediaInstanceDelete( vlm_t *p_vlm, int64_t id, vlm_media_instanc
if( p_input ) if( p_input )
{ {
input_Stop( p_input ); input_Stop( p_input );
input_Join( p_input ); input_Close( p_input );
var_DelCallback( p_instance->p_input, "intf-event", InputEvent, p_media );
input_Release( p_input );
vlm_SendEventMediaInstanceStopped( p_vlm, id, p_media->cfg.psz_name ); vlm_SendEventMediaInstanceStopped( p_vlm, id, p_media->cfg.psz_name );
} }
...@@ -997,9 +995,7 @@ static int vlm_ControlMediaInstanceStart( vlm_t *p_vlm, int64_t id, const char * ...@@ -997,9 +995,7 @@ static int vlm_ControlMediaInstanceStart( vlm_t *p_vlm, int64_t id, const char *
input_Stop( p_input ); input_Stop( p_input );
input_Join( p_input ); input_Close( p_input );
var_DelCallback( p_instance->p_input, "intf-event", InputEvent, p_media );
input_Release( p_input );
if( !p_instance->b_sout_keep ) if( !p_instance->b_sout_keep )
input_resource_TerminateSout( p_instance->p_input_resource ); input_resource_TerminateSout( p_instance->p_input_resource );
......
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