[vlc-commits] macosx: load video profile filters strings to playlist
Victorien Le Couviour--Tuffet
git at videolan.org
Thu Jul 13 11:24:11 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Mon Jun 26 17:52:48 2017 +0200| [9f9edaa70c709a733d4b81f830814e1767f4805c] | committer: Jean-Baptiste Kempf
macosx: load video profile filters strings to playlist
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f9edaa70c709a733d4b81f830814e1767f4805c
---
modules/gui/macosx/VLCVideoEffectsWindowController.m | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m
index 9932fc787c..40a3829141 100644
--- a/modules/gui/macosx/VLCVideoEffectsWindowController.m
+++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m
@@ -589,6 +589,7 @@
- (IBAction)profileSelectorAction:(id)sender
{
intf_thread_t *p_intf = getIntf();
+ playlist_t *p_playlist = pl_Get(p_intf);
[self saveCurrentProfile];
i_old_profile_index = [_profilePopup indexOfSelectedItem];
VLCCoreInteraction *vci_si = [VLCCoreInteraction sharedInstance];
@@ -611,14 +612,14 @@
vout_thread_t *p_vout = getVout();
/* enable the new filters */
- config_PutPsz(p_intf, "video-filter", [tempString UTF8String]);
+ var_SetString(p_playlist, "video-filter", [tempString UTF8String]);
if (p_vout) {
var_SetString(p_vout, "video-filter", [tempString UTF8String]);
}
tempString = B64DecNSStr([items objectAtIndex:1]);
/* enable another round of new filters */
- config_PutPsz(p_intf, "sub-source", [tempString UTF8String]);
+ var_SetString(p_playlist, "sub-source", [tempString UTF8String]);
if (p_vout) {
var_SetString(p_vout, "sub-source", [tempString UTF8String]);
}
@@ -629,14 +630,12 @@
tempString = B64DecNSStr([items objectAtIndex:2]);
/* enable another round of new filters */
- char *psz_current_splitter = var_GetString(pl_Get(p_intf), "video-splitter");
+ char *psz_current_splitter = var_GetString(p_playlist, "video-splitter");
bool b_filter_changed = ![tempString isEqualToString:toNSStr(psz_current_splitter)];
free(psz_current_splitter);
- if (b_filter_changed) {
- config_PutPsz(p_intf, "video-splitter", [tempString UTF8String]);
- var_SetString(pl_Get(p_intf), "video-splitter", [tempString UTF8String]);
- }
+ if (b_filter_changed)
+ var_SetString(p_playlist, "video-splitter", [tempString UTF8String]);
/* try to set filter values on-the-fly and store them appropriately */
// index 3 is deprecated
More information about the vlc-commits
mailing list