[vlc-devel] [PATCH 11/42] decoder: store the decoder order of the decoder vout next to it

Steve Lhomme robux4 at ycbcr.xyz
Wed Oct 16 16:58:46 CEST 2019


---
 src/input/decoder.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 379e8f917ae..f96cdf9095f 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -122,6 +122,7 @@ struct decoder_owner
     audio_output_t *p_aout;
 
     vout_thread_t   *p_vout;
+    enum vlc_vout_order vout_order;
     vlc_decoder_device *p_dec_dev; // TEMPORARY
     bool            vout_thread_added;
 
@@ -567,6 +568,7 @@ static int CreateVoutIfNeeded(struct decoder_owner *p_owner)
 
     vlc_mutex_lock( &p_owner->lock );
     p_owner->p_vout = p_vout;
+    p_owner->vout_order = order;
     if ( p_owner->p_dec_dev != NULL )
         vlc_decoder_device_Release( p_owner->p_dec_dev );
     p_owner->p_dec_dev = dec_dev;
@@ -706,6 +708,7 @@ static subpicture_t *ModuleThread_NewSpuBuffer( decoder_t *p_dec,
 
         p_owner->p_vout = p_vout;
         p_owner->vout_thread_added = true;
+        p_owner->vout_order = channel_order;
         vlc_mutex_unlock(&p_owner->lock);
 
         assert(channel_order != VLC_VOUT_ORDER_NONE);
-- 
2.17.1



More information about the vlc-devel mailing list