[vlc-devel] [PATCH 11/23] macosx: load video profile filters strings in all vouts
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Thu Jun 29 14:24:18 CEST 2017
---
modules/gui/macosx/VLCVideoEffectsWindowController.m | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m
index 1dc64996fd..44bcf0e131 100644
--- a/modules/gui/macosx/VLCVideoEffectsWindowController.m
+++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m
@@ -620,22 +620,25 @@
/* filter handling */
NSString *tempString = B64DecNSStr([items firstObject]);
- vout_thread_t *p_vout = getVout();
+ NSArray<NSValue *> *vouts = getVouts();
/* enable the new filters */
var_SetString(p_playlist, "video-filter", [tempString UTF8String]);
- if (p_vout) {
+ for (NSValue *ptr in vouts) {
+ vout_thread_t *p_vout = [ptr pointerValue];
var_SetString(p_vout, "video-filter", [tempString UTF8String]);
}
tempString = B64DecNSStr([items objectAtIndex:1]);
/* enable another round of new filters */
var_SetString(p_playlist, "sub-source", [tempString UTF8String]);
- if (p_vout) {
+ for (NSValue *ptr in vouts) {
+ vout_thread_t *p_vout = [ptr pointerValue];
var_SetString(p_vout, "sub-source", [tempString UTF8String]);
}
- if (p_vout) {
+ for (NSValue *ptr in vouts) {
+ vout_thread_t *p_vout = [ptr pointerValue];
vlc_object_release(p_vout);
}
--
2.13.1
More information about the vlc-devel
mailing list