[vlc-commits] vout: removed unused event.h

Rémi Denis-Courmont git at videolan.org
Thu May 31 20:45:51 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 31 21:42:56 2018 +0300| [b03310396f6dfb1b55bdab8676db490fa01dbd84] | committer: Rémi Denis-Courmont

vout: removed unused event.h

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

 src/Makefile.am          |  1 -
 src/video_output/event.h | 92 ------------------------------------------------
 2 files changed, 93 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 2e224bae84..a13a3147d0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -278,7 +278,6 @@ libvlccore_la_SOURCES = \
 	video_output/control.h \
 	video_output/display.c \
 	video_output/display.h \
-	video_output/event.h \
 	video_output/inhibit.c \
 	video_output/inhibit.h \
 	video_output/interlacing.c \
diff --git a/src/video_output/event.h b/src/video_output/event.h
deleted file mode 100644
index 5a7ba8ba7d..0000000000
--- a/src/video_output/event.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/*****************************************************************************
- * event.h: vout event
- *****************************************************************************
- * Copyright (C) 2009 Laurent Aimar
- * $Id$
- *
- * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-#include <vlc_common.h>
-#include <math.h>
-
-#include "vout_internal.h"
-
-/* TODO/FIXME
- *
- * It should be converted to something like input_thread_t:
- * one intf-event can be grabbed by a callback, all others
- * variable only var_Change
- *
- * Maybe a intf-mouse can be used too (don't like it).
- *
- * (Some case may infinite loop otherwise here)
- */
-
-#if 0
-static inline void vout_SendEventSnapshot(vout_thread_t *vout, const char *filename)
-{
-    /* signal creation of a new snapshot file */
-    var_SetString(vout->obj.libvlc, "snapshot-file", filename);
-}
-
-#warning "FIXME clean up postproc event"
-
-extern void vout_InstallDeprecatedPostProcessing(vout_thread_t *);
-extern void vout_UninstallDeprecatedPostProcessing(vout_thread_t *);
-
-static inline void vout_SendEventPostProcessing(vout_thread_t *vout, bool is_available)
-{
-    if (is_available)
-        vout_InstallDeprecatedPostProcessing(vout);
-    else
-        vout_UninstallDeprecatedPostProcessing(vout);
-}
-
-static inline void vout_SendEventFilters(vout_thread_t *vout)
-{
-    vout_filter_t **filter;
-    int           filter_count;
-
-    vout_ControlGetFilters(vout, &filter, &filter_count);
-
-    char *list = strdup("");
-    for (int i = 0; i < filter_count; i++) {
-        char *psz;
-
-        if (asprintf(&psz, "%s%s%s",
-                     list, i > 0 ? ":" : "", filter[i]->name) < 0) {
-            free(list);
-            list = NULL;
-            break;
-        }
-        free(list);
-        list = psz;
-    }
-
-    if (list) {
-        vlc_value_t val;
-        val.psz_string = list;
-        var_Change(vout, "video-filter", VLC_VAR_SETVALUE, &val, NULL);
-        free(list);
-    }
-
-    for (int i = 0; i < filter_count; i++)
-        vout_filter_Delete(filter[i]);
-    free(filter);
-}
-#endif



More information about the vlc-commits mailing list