[vlc-commits] input: pass new viewpoints to the aout
Thomas Guillem
git at videolan.org
Wed Jul 19 18:58:01 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jul 7 15:05:24 2017 +0200| [81168edc4016956dde3bfff09c16f80ff01cffa8] | committer: Thomas Guillem
input: pass new viewpoints to the aout
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81168edc4016956dde3bfff09c16f80ff01cffa8
---
src/input/input.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/input/input.c b/src/input/input.c
index 7b1b24d64a..fe9a9767fc 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -45,6 +45,7 @@
#include "resource.h"
#include "stream.h"
+#include <vlc_aout.h>
#include <vlc_sout.h>
#include <vlc_dialog.h>
#include <vlc_url.h>
@@ -1976,6 +1977,14 @@ static bool Control( input_thread_t *p_input,
vlc_object_release( pp_vout[i] );
}
free( pp_vout );
+
+ audio_output_t *p_aout = input_resource_HoldAout( priv->p_resource );
+ if( p_aout )
+ {
+
+ var_SetAddress( p_aout, "viewpoint", &priv->viewpoint );
+ vlc_object_release( p_aout );
+ }
break;
}
More information about the vlc-commits
mailing list