<html><head></head><body>Hi,<br><br>I don't really get why we need a new context (1-2) if we have one layered output per source (3).<br><br><div class="gmail_quote">Le 18 février 2020 18:11:16 GMT+02:00, Thomas Guillem <thomas@gllm.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">In order to be able to specify an es_out_t per input_source_t.<hr> src/input/input.c | 9 +++++----<br> 1 file changed, 5 insertions(+), 4 deletions(-)<br><br>diff --git a/src/input/input.c b/src/input/input.c<br>index 2dd0bf09821..c033cdaae91 100644<br>--- a/src/input/input.c<br>+++ b/src/input/input.c<br>@@ -2427,7 +2427,7 @@ InputStreamHandleAnchor( input_thread_t *p_input, input_source_t *source,<br> return VLC_SUCCESS;<br> }<br> <br>-static demux_t *InputDemuxNew( input_thread_t *p_input,<br>+static demux_t *InputDemuxNew( input_thread_t *p_input, es_out_t *p_es_out,<br> input_source_t *p_source, const char *url,<br> const char *psz_demux, const char *psz_anchor )<br> {<br>@@ -2435,7 +2435,7 @@ static demux_t *InputDemuxNew( input_thread_t *p_input,<br> vlc_object_t *obj = VLC_OBJECT(p_input);<br> <br> /* create the underlying access stream */<br>- stream_t *p_stream = stream_AccessNew( obj, p_input, priv->p_es_out,<br>+ stream_t *p_stream = stream_AccessNew( obj, p_input, p_es_out,<br> priv->b_preparsing, url );<br> if( p_stream == NULL )<br> return NULL;<br>@@ -2469,7 +2469,7 @@ static demux_t *InputDemuxNew( input_thread_t *p_input,<br> <br> /* create a regular demux with the access stream created */<br> demux_t *demux = demux_NewAdvanced( obj, p_input, psz_demux, url, p_stream,<br>- priv->p_es_out, priv->b_preparsing );<br>+ p_es_out, priv->b_preparsing );<br> if( demux != NULL )<br> return demux;<br> <br>@@ -2576,7 +2576,8 @@ static input_source_t *InputSourceNew( input_thread_t *p_input,<br> char *url;<br> if( likely(asprintf( &url, "%s://%s", psz_access, psz_path ) >= 0) )<br> {<br>- in->p_demux = InputDemuxNew( p_input, in, url, psz_demux, psz_anchor );<br>+ in->p_demux = InputDemuxNew( p_input, priv->p_es_out, in, url,<br>+ psz_demux, psz_anchor );<br> free( url );<br> }<br> else</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>