Changeset 43e94311a661030d085e48e395f9a9bc35dae89f

Show
Ignore:
Timestamp:
19/12/04 12:08:18 (4 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1103454498 +0000
git-parent:

[7231885dc1bbb00ea7bb4c4ff32d412f3214ee9d]

git-author:
Clément Stenac <zorglub@videolan.org> 1103454498 +0000
Message:

Fix bugs with psz_shortname

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/wxwindows/open.cpp

    ra90a19a r43e9431  
    478478            new AutoBuiltPanel( notebook, this, p_intf, p_module ); 
    479479        input_tab_array.Add( autopanel ); 
    480         notebook->AddPage( autopanel, wxU( p_module->psz_shortname ), 
     480        notebook->AddPage( autopanel, wxU( p_module->psz_shortname ? 
     481                        p_module->psz_shortname : p_module->psz_object_name ), 
    481482                           i_access_method == CAPTURE_ACCESS ); 
    482483    } 
     
    488489            new AutoBuiltPanel( notebook, this, p_intf, p_module ); 
    489490        input_tab_array.Add( autopanel ); 
    490         notebook->AddPage( autopanel, wxU( p_module->psz_shortname ), 
     491        notebook->AddPage( autopanel, wxU( p_module->psz_shortname ? 
     492                        p_module->psz_shortname : p_module->psz_object_name ), 
    491493                           i_access_method == CAPTURE_ACCESS ); 
    492494    } 
     
    498500            new AutoBuiltPanel( notebook, this, p_intf, p_module ); 
    499501        input_tab_array.Add( autopanel ); 
    500         notebook->AddPage( autopanel, wxU( p_module->psz_shortname ), 
     502        notebook->AddPage( autopanel, wxU( p_module->psz_shortname ? 
     503                        p_module->psz_shortname : p_module->psz_object_name ), 
    501504                           i_access_method == CAPTURE_ACCESS ); 
    502505    } 
     
    508511            new AutoBuiltPanel( notebook, this, p_intf, p_module ); 
    509512        input_tab_array.Add( autopanel ); 
    510         notebook->AddPage( autopanel, wxU( p_module->psz_shortname ), 
     513        notebook->AddPage( autopanel, wxU( p_module->psz_shortname ? 
     514                        p_module->psz_shortname : p_module->psz_object_name ), 
    511515                           i_access_method == CAPTURE_ACCESS ); 
    512516    } 
  • modules/gui/wxwindows/playlist.cpp

    rc3550b5 r43e9431  
    13841384            p_sd_menu->AppendCheckItem( FirstSD_Event + i_number , 
    13851385                       wxU( p_parser->psz_longname ? p_parser->psz_longname : 
    1386                             p_parser->psz_shortname ) ); 
     1386                            ( p_parser->psz_shortname ? 
     1387                            p_parser->psz_shortname :p_parser->psz_object_name)) ); 
    13871388 
    13881389            if( playlist_IsServicesDiscoveryLoaded( p_playlist, 
    1389                                     p_parser->psz_shortname ) ) 
     1390                                    p_parser->psz_object_name ) ) 
    13901391            { 
    13911392                p_sd_menu->Check( FirstSD_Event + i_number, TRUE ); 
     
    13931394 
    13941395            INSERT_ELEM( (void**)pp_sds, i_number, i_number, 
    1395                          (void*)p_parser->psz_shortname ); 
     1396                         (void*)p_parser->psz_object_name ); 
    13961397        } 
    13971398    } 
     
    14251426            Playlist::PopupMenu( node_popup, 
    14261427                                 ScreenToClient( wxGetMousePosition() ) ); 
    1427              
    14281428    } 
    14291429} 
  • src/interface/interface.c

    r8b61d4e r43e9431  
    157157    } 
    158158 
    159     if( p_intf->b_block && strncmp( p_intf->p_module->psz_shortname, "clivlc", 6) ) 
     159    if( p_intf->b_block && strncmp( p_intf->p_module->psz_object_name, 
     160                                    "clivlc", 6) ) 
    160161    { 
    161162        o_pool = [[NSAutoreleasePool alloc] init]; 
    162    [VLCApplication sharedApplication]; 
    163     } 
    164  
    165     if( p_intf->b_block && ( !strncmp( p_intf->p_module->psz_shortname, "macosx" , 6 ) || 
     163        [VLCApplication sharedApplication]; 
     164    } 
     165 
     166    if( p_intf->b_block && ( !strncmp( p_intf->p_module->psz_object_name, "macosx" , 6 ) || 
    166167                             !strncmp( p_intf->p_vlc->psz_object_name, "clivlc", 6 ) ) ) 
    167168    { 
  • src/misc/modules.c

    r906b68f r43e9431  
    11661166    free( p_module->psz_object_name ); 
    11671167    free( p_module->psz_capability ); 
    1168     free( p_module->psz_shortname ); 
     1168    if( p_module->psz_shortname ) free( p_module->psz_shortname ); 
    11691169    free( p_module->psz_longname ); 
    11701170