Commit a0d59512 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt: remove find_name("podcast")

parent 483995a2
...@@ -595,13 +595,9 @@ void PLSelector::podcastAdd( PLSelItem * ) ...@@ -595,13 +595,9 @@ void PLSelector::podcastAdd( PLSelItem * )
setSource( podcastsParent ); //to load the SD in case it's not loaded setSource( podcastsParent ); //to load the SD in case it's not loaded
vlc_object_t *p_obj = (vlc_object_t*) vlc_object_find_name( p_intf->p_libvlc, "podcast" );
if( !p_obj ) return;
QString request("ADD:"); QString request("ADD:");
request += url.trimmed(); request += url.trimmed();
var_SetString( p_obj, "podcast-request", qtu( request ) ); var_SetString( THEPL, "podcast-request", qtu( request ) );
vlc_object_release( p_obj );
} }
void PLSelector::podcastRemove( PLSelItem* item ) void PLSelector::podcastRemove( PLSelItem* item )
...@@ -617,15 +613,10 @@ void PLSelector::podcastRemove( PLSelItem* item ) ...@@ -617,15 +613,10 @@ void PLSelector::podcastRemove( PLSelItem* item )
input_item_t *input = item->treeItem()->data( 0, IN_ITEM_ROLE ).value<input_item_t*>(); input_item_t *input = item->treeItem()->data( 0, IN_ITEM_ROLE ).value<input_item_t*>();
if( !input ) return; if( !input ) return;
vlc_object_t *p_obj = (vlc_object_t*) vlc_object_find_name(
p_intf->p_libvlc, "podcast" );
if( !p_obj ) return;
QString request("RM:"); QString request("RM:");
char *psz_uri = input_item_GetURI( input ); char *psz_uri = input_item_GetURI( input );
request += qfu( psz_uri ); request += qfu( psz_uri );
var_SetString( p_obj, "podcast-request", qtu( request ) ); var_SetString( THEPL, "podcast-request", qtu( request ) );
vlc_object_release( p_obj );
free( psz_uri ); free( psz_uri );
} }
......
...@@ -71,16 +71,10 @@ void PodcastConfigDialog::accept() ...@@ -71,16 +71,10 @@ void PodcastConfigDialog::accept()
if( i != ui.podcastList->count()-1 ) urls += "|"; if( i != ui.podcastList->count()-1 ) urls += "|";
} }
config_PutPsz( p_intf, "podcast-urls", qtu( urls ) ); config_PutPsz( p_intf, "podcast-urls", qtu( urls ) );
vlc_object_t *p_obj = (vlc_object_t*)
vlc_object_find_name( p_intf->p_libvlc, "podcast" );
if( p_obj )
{
var_SetString( p_obj, "podcast-urls", qtu( urls ) );
vlc_object_release( p_obj );
}
if( playlist_IsServicesDiscoveryLoaded( THEPL, "podcast" ) ) if( playlist_IsServicesDiscoveryLoaded( THEPL, "podcast" ) )
{ {
var_SetString( THEPL, "podcast-urls", qtu( urls ) );
msg_Dbg( p_intf, "You will need to reload the podcast module to take into account deleted podcast urls" ); msg_Dbg( p_intf, "You will need to reload the podcast module to take into account deleted podcast urls" );
} }
} }
......
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