<html><head></head><body>Set LGTM.<br><br>Well or the input item locking does not actually LGTM but that's not the fault of this patch series.<br><br><div class="gmail_quote">Le 17 septembre 2020 12:28:57 GMT+03:00, "Hugo Beauzée-Luyssen" <hugo@beauzee.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"><hr> include/vlc_demux.h | 6 ++++++<br> include/vlc_stream.h | 1 +<br> src/input/input.c | 8 ++++++++<br> 3 files changed, 15 insertions(+)<br><br>diff --git a/include/vlc_demux.h b/include/vlc_demux.h<br>index 5d67813fc0..eca3d0c6dd 100644<br>--- a/include/vlc_demux.h<br>+++ b/include/vlc_demux.h<br>@@ -119,6 +119,12 @@ enum demux_query_e<br> * arg1=double *quality, arg2=double *strength */<br> DEMUX_GET_SIGNAL = 0x107,<br> <br>+ /** Retrieves the demuxed content type<br>+ * Can fail if the control is not implemented<br>+ *<br>+ * arg1= int* */<br>+ DEMUX_GET_TYPE = 0x109,<br>+<br> /** Sets the paused or playing/resumed state.<br> *<br> * Streams are initially in playing state. The control always specifies a<br>diff --git a/include/vlc_stream.h b/include/vlc_stream.h<br>index bc6c0d30b7..5627545df5 100644<br>--- a/include/vlc_stream.h<br>+++ b/include/vlc_stream.h<br>@@ -168,6 +168,7 @@ enum stream_query_e<br> STREAM_GET_CONTENT_TYPE, /**< arg1= char ** res=can fail */<br> STREAM_GET_SIGNAL, /**< arg1=double *pf_quality, arg2=double *pf_strength res=can fail */<br> STREAM_GET_TAGS, /**< arg1=const block_t ** res=can fail */<br>+ STREAM_GET_TYPE, /**< arg1=int* res=can fail */<br> <br> STREAM_SET_PAUSE_STATE = 0x200, /**< arg1= bool res=can fail */<br> STREAM_SET_TITLE, /**< arg1= int res=can fail */<br>diff --git a/src/input/input.c b/src/input/input.c<br>index 28de738f8a..73b52530aa 100644<br>--- a/src/input/input.c<br>+++ b/src/input/input.c<br>@@ -2791,6 +2791,14 @@ static int InputSourceInit( input_source_t *in, input_thread_t *p_input,<br> if( demux_Control( in->p_demux, DEMUX_GET_FPS, &in->f_fps ) )<br> in->f_fps = 0.f;<br> <br>+ int input_type;<br>+ if( !demux_Control( in->p_demux, DEMUX_GET_TYPE, &input_type ) )<br>+ {<br>+ vlc_mutex_lock( &input_priv(p_input)->p_item->lock );<br>+ input_priv(p_input)->p_item->i_type = input_type;<br>+ vlc_mutex_unlock( &input_priv(p_input)->p_item->lock );<br>+ }<br>+<br> if( var_GetInteger( p_input, "clock-synchro" ) != -1 )<br> in->b_can_pace_control = !var_GetInteger( p_input, "clock-synchro" );<br> </pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>