[vlc-commits] playlist: create playlist aout early on (fixes #7810)
Rémi Denis-Courmont
git at videolan.org
Sun Dec 9 21:21:38 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 9 22:21:17 2012 +0200| [c6879a0d4e259a2276354f7591887556384055bb] | committer: Rémi Denis-Courmont
playlist: create playlist aout early on (fixes #7810)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6879a0d4e259a2276354f7591887556384055bb
---
src/playlist/engine.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index c4aa7c8..a80c3ef 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -27,13 +27,13 @@
#include <stddef.h>
#include <assert.h>
+
#include <vlc_common.h>
#include <vlc_sout.h>
#include <vlc_playlist.h>
#include <vlc_interface.h>
#include "playlist_internal.h"
-#include "stream_output/stream_output.h" /* sout_DeleteInstance */
-#include <math.h> /* for fabs() */
+#include "input/resource.h"
/*****************************************************************************
* Local prototypes
@@ -301,6 +301,11 @@ static playlist_t *playlist_Create( vlc_object_t *p_parent )
if( unlikely(p->p_input_resource == NULL) )
abort();
+ /* Audio output (needed for volume and device controls). */
+ audio_output_t *aout = input_resource_GetAout( p->p_input_resource );
+ if( aout != NULL )
+ input_resource_PutAout( p->p_input_resource, aout );
+
/* Thread */
playlist_Activate (p_playlist);
More information about the vlc-commits
mailing list