Commit 8038a9d3 authored by Clément Stenac's avatar Clément Stenac

Fix invalid return

parent 6c02c3b7
......@@ -266,7 +266,7 @@ input_thread_t *__input_CreateThread( vlc_object_t *p_parent,
* \param p_parent a vlc_object
* \param p_item an input item
* \param b_block should we block until read is finished ?
* \return the input object id if non blocking, 0 else
* \return the input object id if non blocking, an error code else
*/
int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
vlc_bool_t b_block )
......@@ -280,7 +280,7 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
if( b_block )
{
RunAndClean( p_input );
return 0;
return VLC_SUCCESS;
}
else
{
......@@ -290,7 +290,7 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
msg_Err( p_input, "cannot create input thread" );
vlc_object_detach( p_input );
vlc_object_destroy( p_input );
return;
return VLC_EGENERIC;
}
}
return p_input->i_object_id;
......
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