Commit c6879a0d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: create playlist aout early on (fixes #7810)

parent 8f2afb98
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
#include <stddef.h> #include <stddef.h>
#include <assert.h> #include <assert.h>
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_sout.h> #include <vlc_sout.h>
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include <vlc_interface.h> #include <vlc_interface.h>
#include "playlist_internal.h" #include "playlist_internal.h"
#include "stream_output/stream_output.h" /* sout_DeleteInstance */ #include "input/resource.h"
#include <math.h> /* for fabs() */
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
...@@ -301,6 +301,11 @@ static playlist_t *playlist_Create( vlc_object_t *p_parent ) ...@@ -301,6 +301,11 @@ static playlist_t *playlist_Create( vlc_object_t *p_parent )
if( unlikely(p->p_input_resource == NULL) ) if( unlikely(p->p_input_resource == NULL) )
abort(); 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 */ /* Thread */
playlist_Activate (p_playlist); playlist_Activate (p_playlist);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment