]> git.sesse.net Git - vlc/commitdiff
* Fix setRepresentedFilename in case p_access not present (ie. in case of access_demux)
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 23 Feb 2005 16:27:01 +0000 (16:27 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 23 Feb 2005 16:27:01 +0000 (16:27 +0000)
modules/gui/macosx/vout.m

index b3fb79cf5414ed5796700d4aff746d0b1c9569b1..a6fc332252e0e7c4db5ee5bd034a8bb307b1dc34 100644 (file)
 - (void)updateTitle
 {
     NSMutableString * o_title,* o_mrl;
-    vlc_bool_t b_file = VLC_FALSE;
     input_thread_t * p_input;
     
     if( p_vout == NULL )
         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 )
         o_title = [NSMutableString stringWithUTF8String:
             p_input->input.p_item->psz_name];
     vlc_object_release( p_input );
     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:"];
             if( prefix_range.location != NSNotFound )