]> git.sesse.net Git - vlc/commitdiff
If the podcast service discovery is already runing, update its podcast-urls variable.
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 2 Sep 2007 21:24:53 +0000 (21:24 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 2 Sep 2007 21:24:53 +0000 (21:24 +0000)
modules/gui/qt4/dialogs/podcast_configuration.cpp

index 343cd88271a96c21f9edebb6ab6f0ccccf7ad4f1..f113c14f7aa33ca42d6a22f93e0adc06c7e8971b 100644 (file)
@@ -56,10 +56,20 @@ void PodcastConfigurationDialog::accept()
     }
     const char *psz_urls = qtu( urls );
     config_PutPsz( p_intf, "podcast-urls", psz_urls );
+    vlc_object_t *p_obj = (vlc_object_t*)
+                          vlc_object_find_name( p_intf->p_libvlc,
+                                                "podcast", FIND_CHILD );
+    if( p_obj )
+    {
+        var_SetString( p_obj, "podcast-urls", psz_urls );
+        vlc_object_release( p_obj );
+    }
+
     if( playlist_IsServicesDiscoveryLoaded( THEPL, "podcast" ) )
     {
-        msg_Info( p_intf, "You will need to reload the podcast module for changes to be used (FIXME)" );
+        msg_Dbg( p_intf, "You will need to reload the podcast module to take into account deleted podcast urls" );
     }
+
     QDialog::accept();
 }