[vlc-commits] macosx: remove find_name(podcast)

Felix Paul Kühne git at videolan.org
Wed Apr 24 14:33:57 CEST 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Apr 24 14:33:44 2013 +0200| [9ce54ab9d9b99bffddbc9b6a45bcc9e39be3c655] | committer: Felix Paul Kühne

macosx: remove find_name(podcast)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ce54ab9d9b99bffddbc9b6a45bcc9e39be3c655
---

 modules/gui/macosx/MainWindow.m |   14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index e6f051a..a27ec5d 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1164,12 +1164,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
 
         [podcastConf appendString: [o_podcast_subscribe_url_fld stringValue]];
         config_PutPsz(VLCIntf, "podcast-urls", [podcastConf UTF8String]);
-
-        vlc_object_t *p_obj = (vlc_object_t*)vlc_object_find_name(VLCIntf->p_libvlc, "podcast");
-        if (p_obj) {
-            var_SetString(p_obj, "podcast-urls", [podcastConf UTF8String]);
-            vlc_object_release(p_obj);
-        }
+        var_SetString(pl_Get(VLCIntf), "podcast-urls", [podcastConf UTF8String]);
         [podcastConf release];
     }
 }
@@ -1192,14 +1187,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
         NSMutableArray * urls = [[NSMutableArray alloc] initWithArray:[[NSString stringWithUTF8String:config_GetPsz(VLCIntf, "podcast-urls")] componentsSeparatedByString:@"|"]];
         [urls removeObjectAtIndex: [o_podcast_unsubscribe_pop indexOfSelectedItem]];
         config_PutPsz(VLCIntf, "podcast-urls", [[urls componentsJoinedByString:@"|"] UTF8String]);
+        var_SetString(pl_Get(VLCIntf), "podcast-urls", config_GetPsz(VLCIntf, "podcast-urls"));
         [urls release];
 
-        vlc_object_t *p_obj = (vlc_object_t*)vlc_object_find_name(VLCIntf->p_libvlc, "podcast");
-        if (p_obj) {
-            var_SetString(p_obj, "podcast-urls", config_GetPsz(VLCIntf, "podcast-urls"));
-            vlc_object_release(p_obj);
-        }
-
         /* reload the podcast module, since it won't update its list when removing podcasts */
         playlist_t * p_playlist = pl_Get(VLCIntf);
         if (playlist_IsServicesDiscoveryLoaded(p_playlist, "podcast{longname=\"Podcasts\"}")) {



More information about the vlc-commits mailing list