Commit bbf8b0eb authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix setRepresentedFilename in case p_access not present (ie. in case of access_demux)

parent e3c2dcb0
...@@ -417,7 +417,6 @@ ...@@ -417,7 +417,6 @@
- (void)updateTitle - (void)updateTitle
{ {
NSMutableString * o_title,* o_mrl; NSMutableString * o_title,* o_mrl;
vlc_bool_t b_file = VLC_FALSE;
input_thread_t * p_input; input_thread_t * p_input;
if( p_vout == NULL ) if( p_vout == NULL )
...@@ -433,8 +432,6 @@ ...@@ -433,8 +432,6 @@
return; return;
} }
if( ! strcmp( p_input->input.p_access->p_module->psz_shortname, "File" ) )
b_file = VLC_TRUE;
if( p_input->input.p_item->psz_name != NULL ) if( p_input->input.p_item->psz_name != NULL )
o_title = [NSMutableString stringWithUTF8String: o_title = [NSMutableString stringWithUTF8String:
p_input->input.p_item->psz_name]; p_input->input.p_item->psz_name];
...@@ -447,7 +444,7 @@ ...@@ -447,7 +444,7 @@
vlc_object_release( p_input ); vlc_object_release( p_input );
if( o_mrl != nil ) if( o_mrl != nil )
{ {
if( b_file == VLC_TRUE ) if( p_input->input.p_access && !strcmp( p_input->input.p_access->p_module->psz_shortname, "File" ) )
{ {
NSRange prefix_range = [o_mrl rangeOfString: @"file:"]; NSRange prefix_range = [o_mrl rangeOfString: @"file:"];
if( prefix_range.location != NSNotFound ) if( prefix_range.location != NSNotFound )
......
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