Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e972fb43
Commit
e972fb43
authored
Jul 13, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix typo preventing post-processing (refs #11613)
parent
104e9369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+9
-8
No files found.
modules/gui/macosx/MainMenu.m
View file @
e972fb43
...
...
@@ -22,11 +22,12 @@
*****************************************************************************/
#import "MainMenu.h"
#import "intf.h"
#import <vlc_common.h>
#import <vlc_playlist.h>
#import <vlc_input.h>
#import "intf.h"
#import "open.h"
#import "wizard.h"
#import "about.h"
...
...
@@ -290,13 +291,13 @@ static VLCMainMenu *_o_sharedInstance = nil;
action:
@selector
(
togglePostProcessing
:)
keyEquivalent:
@""
];
o_mitem
=
[
o_mu_ffmpeg_pp
itemAtIndex
:
x
];
[
o_mitem
setEnabled
:
YES
];
[
o_mitem
setEnabled
:
YES
];
[
o_mitem
setTag
:
x
];
[
o_mitem
setTarget
:
self
];
[
o_mitem
setTarget
:
self
];
}
char
*
psz_config
=
config_GetPsz
(
p_intf
,
"video-filter"
);
if
(
psz_config
)
{
if
(
!
strstr
(
psz_config
,
"postproc
ess
"
))
if
(
!
strstr
(
psz_config
,
"postproc"
))
[[
o_mu_ffmpeg_pp
itemAtIndex
:
0
]
setState
:
NSOnState
];
else
[[
o_mu_ffmpeg_pp
itemWithTag
:
config_GetInt
(
p_intf
,
"postproc-q"
)]
setState
:
NSOnState
];
...
...
@@ -940,17 +941,17 @@ static VLCMainMenu *_o_sharedInstance = nil;
-
(
void
)
_disablePostProcessing
{
[[
VLCCoreInteraction
sharedInstance
]
setVideoFilter
:
"postproc
ess
"
on
:
false
];
[[
VLCCoreInteraction
sharedInstance
]
setVideoFilter
:
"postproc"
on
:
false
];
}
-
(
void
)
_enablePostProcessing
{
[[
VLCCoreInteraction
sharedInstance
]
setVideoFilter
:
"postproc
ess
"
on
:
true
];
[[
VLCCoreInteraction
sharedInstance
]
setVideoFilter
:
"postproc"
on
:
true
];
}
-
(
IBAction
)
togglePostProcessing
:(
id
)
sender
{
char
*
psz_name
=
"postproc
ess
"
;
char
*
psz_name
=
"postproc"
;
NSInteger
count
=
[
o_mu_ffmpeg_pp
numberOfItems
];
for
(
NSUInteger
x
=
0
;
x
<
count
;
x
++
)
[[
o_mu_ffmpeg_pp
itemAtIndex
:
x
]
setState
:
NSOffState
];
...
...
@@ -962,7 +963,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
[
self
_enablePostProcessing
];
[
sender
setState
:
NSOnState
];
[[
VLCCoreInteraction
sharedInstance
]
setVideoFilterProperty
:
"postproc-q"
forFilter
:
"postproc
ess
"
integer
:
[
sender
tag
]];
[[
VLCCoreInteraction
sharedInstance
]
setVideoFilterProperty
:
"postproc-q"
forFilter
:
"postproc"
integer
:
[
sender
tag
]];
}
}
...
...
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