Commit aa98ec01 authored by Antoine Cellerier's avatar Antoine Cellerier

Hack to handle service discovery submodules correctly. This should maybe be...

Hack to handle service discovery submodules correctly. This should maybe be changed in other interfaces.
parent c5823f07
...@@ -1450,13 +1450,19 @@ wxMenu *Playlist::SDMenu() ...@@ -1450,13 +1450,19 @@ wxMenu *Playlist::SDMenu()
(p_parser->psz_shortname ? (p_parser->psz_shortname ?
p_parser->psz_shortname : p_parser->psz_object_name) ) ); p_parser->psz_shortname : p_parser->psz_object_name) ) );
/* hack to handle submodules properly */
int i = -1;
while( p_parser->pp_shortcuts[++i] != NULL );
i--;
if( playlist_IsServicesDiscoveryLoaded( p_playlist, if( playlist_IsServicesDiscoveryLoaded( p_playlist,
p_parser->psz_object_name ) ) i>=0?p_parser->pp_shortcuts[i]
:p_parser->psz_object_name ) )
{ {
p_sd_menu->Check( FirstSD_Event + i_number, TRUE ); p_sd_menu->Check( FirstSD_Event + i_number, TRUE );
} }
pp_sds[i_number++] = p_parser->psz_object_name; pp_sds[i_number++] = i>=0?p_parser->pp_shortcuts[i]
:p_parser->psz_object_name;
} }
} }
vlc_list_release( p_list ); vlc_list_release( p_list );
......
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