Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
9f9edaa7
Commit
9f9edaa7
authored
Jun 26, 2017
by
Victorien Le Couviour--Tuffet
Committed by
Jean-Baptiste Kempf
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: load video profile filters strings to playlist
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
02a6e7ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/gui/macosx/VLCVideoEffectsWindowController.m
modules/gui/macosx/VLCVideoEffectsWindowController.m
+6
-7
No files found.
modules/gui/macosx/VLCVideoEffectsWindowController.m
View file @
9f9edaa7
...
...
@@ -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
(
p
l_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
...
...
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