Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
9ce54ab9
Commit
9ce54ab9
authored
Apr 24, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: remove find_name(podcast)
parent
113f7835
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+2
-12
No files found.
modules/gui/macosx/MainWindow.m
View file @
9ce54ab9
...
...
@@ -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
\"
}"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment