Commit c27be2b8 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* try to fix a crash in case p_input invalidates while waiting for the...

* try to fix a crash in case p_input invalidates while waiting for the variables. Found by joneskoo, fix inspired by Meuuh.
parent fa3690b1
...@@ -965,15 +965,16 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -965,15 +965,16 @@ static VLCMain *_o_sharedMainInstance = nil;
if( ( b_input = ( p_input != NULL ) ) ) if( ( b_input = ( p_input != NULL ) ) )
{ {
vlc_object_yield( p_input );
/* seekable streams */ /* seekable streams */
var_Get( p_input, "seekable", &val); b_seekable = var_GetBool( p_input, "seekable" );
b_seekable = val.b_bool;
/* check wether slow/fast motion is possible*/ /* check wether slow/fast motion is possible*/
b_control = p_input->input.b_can_pace_control; b_control = p_input->input.b_can_pace_control;
/* chapters & titles */ /* chapters & titles */
//b_chapters = p_input->stream.i_area_nb > 1; //b_chapters = p_input->stream.i_area_nb > 1;
vlc_object_release( p_input );
} }
[o_btn_stop setEnabled: b_input]; [o_btn_stop setEnabled: b_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