[vlc-devel] [PATCH 1/2] qt: don't create the "window" variable in libvlc
Steve Lhomme
robux4 at ycbcr.xyz
Thu Feb 13 09:21:08 CET 2020
The variable already already exists.
We could assert when trying to create a variable that doesn't exist, just like
we assert when trying to read a variable that doesn't exist.
---
modules/gui/qt/qt.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/modules/gui/qt/qt.cpp b/modules/gui/qt/qt.cpp
index 88f3427d166..c7b70b22d30 100644
--- a/modules/gui/qt/qt.cpp
+++ b/modules/gui/qt/qt.cpp
@@ -681,7 +681,6 @@ static void *Thread( void *obj )
libvlc_int_t *libvlc = vlc_object_instance( p_intf );
var_Create( libvlc, "qt4-iface", VLC_VAR_ADDRESS );
- var_Create( libvlc, "window", VLC_VAR_STRING );
if( known_type )
{
@@ -731,7 +730,6 @@ static void *Thread( void *obj )
if (p_mi != NULL)
{
libvlc_int_t *libvlc = vlc_object_instance( p_intf );
- var_Destroy( libvlc, "window" );
var_Destroy( libvlc, "qt4-iface" );
}
return ThreadCleanup( p_intf, false );
--
2.17.1
More information about the vlc-devel
mailing list