[vlc-devel] [PATCH 5/7] es_out: fix inverted opaque/transparent forwarding

Francois Cartegnie fcvlcdev at free.fr
Tue Jun 9 10:38:50 CEST 2020


---
 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;
     }
-- 
2.25.4



More information about the vlc-devel mailing list