Commit d9c47b95 authored by Victorien Le Couviour--Tuffet's avatar Victorien Le Couviour--Tuffet Committed by Jean-Baptiste Kempf

macosx: apply filters change on all vouts

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 64bae949
......@@ -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);
......
......@@ -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 -
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment