[vlc-commits] decoder: store the decoder order of the decoder vout next to it

Steve Lhomme git at videolan.org
Wed Oct 9 10:16:04 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Oct  7 15:25:07 2019 +0200| [404ec88f46fd2208065608733825099625b68341] | committer: Steve Lhomme

decoder: store the decoder order of the decoder vout next to it

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=404ec88f46fd2208065608733825099625b68341
---

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

diff --git a/src/input/decoder.c b/src/input/decoder.c
index f46ad07c6a..1e9b18d2d8 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
 
     /* -- Theses variables need locking on read *and* write -- */
@@ -566,6 +567,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;
@@ -702,6 +704,7 @@ static subpicture_t *ModuleThread_NewSpuBuffer( decoder_t *p_dec,
         }
 
         p_owner->p_vout = p_vout;
+        p_owner->vout_order = channel_order;
         vlc_mutex_unlock(&p_owner->lock);
 
         assert(channel_order != VLC_VOUT_ORDER_NONE);



More information about the vlc-commits mailing list