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
52babf6e
Commit
52babf6e
authored
Jul 21, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: video effects: fix for applying profile settings with different filter strings (refs #9010)
parent
181ea34b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/gui/macosx/VideoEffects.m
modules/gui/macosx/VideoEffects.m
+4
-3
No files found.
modules/gui/macosx/VideoEffects.m
View file @
52babf6e
...
...
@@ -763,34 +763,35 @@ static VLCVideoEffects *_o_sharedInstance = nil;
NSString
*
tempString
=
[
NSString
stringWithFormat
:
@"%s"
,
vlc_b64_decode
([[
items
objectAtIndex
:
0
]
UTF8String
])];
NSArray
*
tempArray
;
NSUInteger
count
;
/* enable the new filters */
config_PutPsz
(
p_intf
,
"video-filter"
,
""
);
if
([
tempString
length
]
>
0
)
{
tempArray
=
[
tempString
componentsSeparatedByString
:
@":"
];
count
=
[
tempArray
count
];
for
(
NSUInteger
x
=
0
;
x
<
count
;
x
++
)
[
self
setVideoFilter
:(
char
*
)[[
tempArray
objectAtIndex
:
x
]
UTF8String
]
on
:
YES
];
}
config_PutPsz
(
p_intf
,
"video-filter"
,
[
tempString
UTF8String
]);
tempString
=
[
NSString
stringWithFormat
:
@"%s"
,
vlc_b64_decode
([[
items
objectAtIndex
:
1
]
UTF8String
])];
/* enable another round of new filters */
config_PutPsz
(
p_intf
,
"sub-source"
,
""
);
if
([
tempString
length
]
>
0
)
{
tempArray
=
[
tempString
componentsSeparatedByString
:
@":"
];
count
=
[
tempArray
count
];
for
(
NSUInteger
x
=
0
;
x
<
count
;
x
++
)
[
self
setVideoFilter
:(
char
*
)[[
tempArray
objectAtIndex
:
x
]
UTF8String
]
on
:
YES
];
}
config_PutPsz
(
p_intf
,
"sub-source"
,
[
tempString
UTF8String
]);
tempString
=
[
NSString
stringWithFormat
:
@"%s"
,
vlc_b64_decode
([[
items
objectAtIndex
:
2
]
UTF8String
])];
/* enable another round of new filters */
config_PutPsz
(
p_intf
,
"video-splitter"
,
""
);
if
([
tempString
length
]
>
0
)
{
tempArray
=
[
tempString
componentsSeparatedByString
:
@":"
];
count
=
[
tempArray
count
];
for
(
NSUInteger
x
=
0
;
x
<
count
;
x
++
)
[
self
setVideoFilter
:(
char
*
)[[
tempArray
objectAtIndex
:
x
]
UTF8String
]
on
:
YES
];
}
config_PutPsz
(
p_intf
,
"video-splitter"
,
[
tempString
UTF8String
]);
/* try to set filter values on-the-fly and store them appropriately */
[
self
setVideoFilterProperty
:
"hue"
forFilter
:
"adjust"
integer
:
[[
items
objectAtIndex
:
3
]
intValue
]];
...
...
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