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
d9c47b95
Commit
d9c47b95
authored
Jun 20, 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: apply filters change on all vouts
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
64bae949
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
13 deletions
+17
-13
modules/gui/macosx/VLCCoreInteraction.m
modules/gui/macosx/VLCCoreInteraction.m
+7
-5
modules/gui/macosx/VLCVideoEffectsWindowController.m
modules/gui/macosx/VLCVideoEffectsWindowController.m
+10
-8
No files found.
modules/gui/macosx/VLCCoreInteraction.m
View file @
d9c47b95
...
...
@@ -781,11 +781,13 @@ static int BossCallback(vlc_object_t *p_this, const char *psz_var,
/* Try to set non splitter filters on the fly */
if
(
strcmp
(
psz_filter_type
,
"video-splitter"
))
{
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
var_SetString
(
p_vout
,
psz_filter_type
,
psz_string
);
vlc_object_release
(
p_vout
);
}
NSArray
<
NSValue
*>
*
vouts
=
getVouts
();
if
(
vouts
)
for
(
NSValue
*
val
in
vouts
)
{
vout_thread_t
*
p_vout
=
[
val
pointerValue
];
var_SetString
(
p_vout
,
psz_filter_type
,
psz_string
);
vlc_object_release
(
p_vout
);
}
}
free
(
psz_string
);
...
...
modules/gui/macosx/VLCVideoEffectsWindowController.m
View file @
d9c47b95
...
...
@@ -915,14 +915,16 @@
[
self
setCropRightValue
:
[
self
cropLeftValue
]];
}
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
var_SetInteger
(
p_vout
,
"crop-top"
,
[
_cropTopTextField
intValue
]);
var_SetInteger
(
p_vout
,
"crop-bottom"
,
[
_cropBottomTextField
intValue
]);
var_SetInteger
(
p_vout
,
"crop-left"
,
[
_cropLeftTextField
intValue
]);
var_SetInteger
(
p_vout
,
"crop-right"
,
[
_cropRightTextField
intValue
]);
vlc_object_release
(
p_vout
);
}
NSArray
<
NSValue
*>
*
vouts
=
getVouts
();
if
(
vouts
)
for
(
NSValue
*
ptr
in
vouts
)
{
vout_thread_t
*
p_vout
=
[
ptr
pointerValue
];
var_SetInteger
(
p_vout
,
"crop-top"
,
[
_cropTopTextField
intValue
]);
var_SetInteger
(
p_vout
,
"crop-bottom"
,
[
_cropBottomTextField
intValue
]);
var_SetInteger
(
p_vout
,
"crop-left"
,
[
_cropLeftTextField
intValue
]);
var_SetInteger
(
p_vout
,
"crop-right"
,
[
_cropRightTextField
intValue
]);
vlc_object_release
(
p_vout
);
}
}
#pragma mark -
...
...
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