[vlc-commits] es_out: fix inverted opaque/transparent forwarding

Francois Cartegnie git at videolan.org
Wed Jun 10 14:27:00 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 29 11:50:23 2020 +0200| [d309915f9eaea94cd24edf39ef8c2fb1d0d524e7] | committer: Francois Cartegnie

es_out: fix inverted opaque/transparent forwarding

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

 src/input/es_out.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index ec563f896e..97c8774eb5 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2321,7 +2321,7 @@ static void EsOutSelectEs( es_out_t *out, es_out_id_t *es, bool b_force )
         if( vbi_page >= 0 )
         {
             input_SendEventVbiPage( p_input, vbi_page );
-            input_SendEventVbiTransparency( p_input, vbi_opaque );
+            input_SendEventVbiTransparency( p_input, !vbi_opaque );
         }
     }
 }
@@ -3733,10 +3733,10 @@ static int EsOutVaPrivControlLocked( es_out_t *out, int query, va_list args )
         }
         else
         {
-            bool opaque = va_arg( args, int );
-            ret = vlc_input_decoder_SetVbiOpaque( es->p_dec, opaque );
+            bool transp = va_arg( args, int );
+            ret = vlc_input_decoder_SetVbiOpaque( es->p_dec, !transp );
             if( ret == VLC_SUCCESS )
-                input_SendEventVbiTransparency( p_sys->p_input, opaque );
+                input_SendEventVbiTransparency( p_sys->p_input, transp );
         }
         return ret;
     }



More information about the vlc-commits mailing list