[vlc-commits] macosx: load video profile filters strings in all vouts
Victorien Le Couviour--Tuffet
git at videolan.org
Thu Jul 13 11:24:15 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Mon Jun 26 17:53:52 2017 +0200| [70c486c36bf029a664e504c31a165d7f5b85787f] | committer: Jean-Baptiste Kempf
macosx: load video profile filters strings in all vouts
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70c486c36bf029a664e504c31a165d7f5b85787f
---
.../gui/macosx/VLCVideoEffectsWindowController.m | 23 +++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m
index 40a3829141..0df5d87916 100644
--- a/modules/gui/macosx/VLCVideoEffectsWindowController.m
+++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m
@@ -609,24 +609,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) {
- var_SetString(p_vout, "video-filter", [tempString UTF8String]);
- }
+ if (vouts)
+ 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) {
- var_SetString(p_vout, "sub-source", [tempString UTF8String]);
- }
-
- if (p_vout) {
- vlc_object_release(p_vout);
- }
+ if (vouts)
+ for (NSValue *ptr in vouts) {
+ vout_thread_t *p_vout = [ptr pointerValue];
+ var_SetString(p_vout, "sub-source", [tempString UTF8String]);
+ vlc_object_release(p_vout);
+ }
tempString = B64DecNSStr([items objectAtIndex:2]);
/* enable another round of new filters */
More information about the vlc-commits
mailing list