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

input: add an assertion

parent 80cd00cb
...@@ -220,6 +220,7 @@ int input_Preparse( vlc_object_t *p_parent, input_item_t *p_item ) ...@@ -220,6 +220,7 @@ int input_Preparse( vlc_object_t *p_parent, input_item_t *p_item )
*/ */
int input_Start( input_thread_t *p_input ) int input_Start( input_thread_t *p_input )
{ {
assert( !p_input->p->is_running );
/* Create thread and wait for its readiness. */ /* Create thread and wait for its readiness. */
p_input->p->is_running = !vlc_clone( &p_input->p->thread, p_input->p->is_running = !vlc_clone( &p_input->p->thread,
Run, p_input, VLC_THREAD_PRIORITY_INPUT ); Run, p_input, VLC_THREAD_PRIORITY_INPUT );
......
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