[vlc-devel] [PATCH 4/4] vout_wrapper: remove unneeded local "video-wallpaper" variable forwarding
Steve Lhomme
robux4 at ycbcr.xyz
Fri Aug 17 11:08:52 CEST 2018
The display modules are not listening on this anymore
---
src/video_output/vout_wrapper.c | 30 ------------------------------
1 file changed, 30 deletions(-)
diff --git a/src/video_output/vout_wrapper.c b/src/video_output/vout_wrapper.c
index 88d22b42d7..bacce55167 100644
--- a/src/video_output/vout_wrapper.c
+++ b/src/video_output/vout_wrapper.c
@@ -36,14 +36,6 @@
#include "vout_internal.h"
#include "display.h"
-/*****************************************************************************
- * Local prototypes
- *****************************************************************************/
-#ifdef _WIN32
-static int Forward(vlc_object_t *, char const *,
- vlc_value_t, vlc_value_t, void *);
-#endif
-
/*****************************************************************************
*
*****************************************************************************/
@@ -66,12 +58,6 @@ int vout_OpenWrapper(vout_thread_t *vout,
return VLC_EGENERIC;
/* */
-#ifdef _WIN32
- var_Create(vout, "video-wallpaper", VLC_VAR_BOOL|VLC_VAR_DOINHERIT);
- var_AddCallback(vout, "video-wallpaper", Forward, NULL);
-#endif
-
- /* */
sys->decoder_pool = NULL;
return VLC_SUCCESS;
@@ -84,9 +70,6 @@ void vout_CloseWrapper(vout_thread_t *vout, vout_display_state_t *state)
{
vout_thread_sys_t *sys = vout->p;
-#ifdef _WIN32
- var_DelCallback(vout, "video-wallpaper", Forward, NULL);
-#endif
sys->decoder_pool = NULL; /* FIXME remove */
vout_DeleteDisplay(sys->display.vd, state);
@@ -193,16 +176,3 @@ void vout_ManageWrapper(vout_thread_t *vout)
NoDrInit(sys);
}
}
-
-#ifdef _WIN32
-static int Forward(vlc_object_t *object, char const *var,
- vlc_value_t oldval, vlc_value_t newval, void *data)
-{
- vout_thread_t *vout = (vout_thread_t*)object;
-
- VLC_UNUSED(oldval);
- VLC_UNUSED(data);
- return var_Set(vout->p->display.vd, var, newval);
-}
-#endif
-
--
2.17.0
More information about the vlc-devel
mailing list