[vlc-commits] macosx: apply subsdelay-factor change on all vouts
Victorien Le Couviour--Tuffet
git at videolan.org
Thu Jul 13 11:24:30 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Mon Jun 26 16:39:13 2017 +0200| [9c571385656300052011ac65fed083eb121d718f] | committer: Jean-Baptiste Kempf
macosx: apply subsdelay-factor change on all vouts
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c571385656300052011ac65fed083eb121d718f
---
.../gui/macosx/VLCTrackSynchronizationWindowController.m | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/modules/gui/macosx/VLCTrackSynchronizationWindowController.m b/modules/gui/macosx/VLCTrackSynchronizationWindowController.m
index b3c137e312..85d6d7f33d 100644
--- a/modules/gui/macosx/VLCTrackSynchronizationWindowController.m
+++ b/modules/gui/macosx/VLCTrackSynchronizationWindowController.m
@@ -197,13 +197,15 @@
if (p_input) {
float f_factor = [_sv_durTextField floatValue];
+ NSArray<NSValue *> *vouts = getVouts();
- /* Try to find an instance of subsdelay, and set its factor */
- vlc_object_t *p_obj = (vlc_object_t *) vlc_object_find_name(getIntf()->obj.libvlc, "subsdelay");
- if (p_obj) {
- var_SetFloat(p_obj, SUBSDELAY_CFG_FACTOR, f_factor);
- vlc_object_release(p_obj);
- }
+ if (vouts)
+ for (NSValue *ptr in vouts) {
+ vout_thread_t *p_vout = [ptr pointerValue];
+
+ var_SetFloat(p_vout, SUBSDELAY_CFG_FACTOR, f_factor);
+ vlc_object_release(p_vout);
+ }
[[VLCCoreInteraction sharedInstance] setVideoFilter: "subsdelay" on: f_factor > 0];
vlc_object_release(p_input);
More information about the vlc-commits
mailing list