[vlc-commits] demux: adaptative: add debug helper
Francois Cartegnie
git at videolan.org
Tue Oct 6 13:16:36 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct 6 12:52:03 2015 +0200| [d666b6e59b5cd34a02dbb060396719c0b40302aa] | committer: Francois Cartegnie
demux: adaptative: add debug helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d666b6e59b5cd34a02dbb060396719c0b40302aa
---
modules/demux/Makefile.am | 1 +
modules/demux/adaptative/tools/Debug.hpp | 32 ++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
diff --git a/modules/demux/Makefile.am b/modules/demux/Makefile.am
index bfd79d9..4b94a24 100644
--- a/modules/demux/Makefile.am
+++ b/modules/demux/Makefile.am
@@ -322,6 +322,7 @@ libadaptative_plugin_la_SOURCES = \
demux/adaptative/Streams.hpp \
demux/adaptative/StreamsType.hpp \
demux/adaptative/Time.hpp \
+ demux/adaptative/tools/Debug.hpp \
demux/adaptative/tools/Helper.cpp \
demux/adaptative/tools/Helper.h \
demux/adaptative/tools/Properties.hpp \
diff --git a/modules/demux/adaptative/tools/Debug.hpp b/modules/demux/adaptative/tools/Debug.hpp
new file mode 100644
index 0000000..81eba8d
--- /dev/null
+++ b/modules/demux/adaptative/tools/Debug.hpp
@@ -0,0 +1,32 @@
+/*
+ * Debug.hpp
+ *****************************************************************************
+ * Copyright © 2015 VideoLAN and VLC Authors
+ *
+ * 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.
+ *****************************************************************************/
+#ifndef DEBUG_HPP
+#define DEBUG_HPP
+
+//#define ADAPTATIVE_ADVANCED_DEBUG 0
+
+#ifdef ADAPTATIVE_ADVANCED_DEBUG
+ #define AdvDebug(code) code
+#else
+ #define AdvDebug(code)
+#endif
+
+#endif // DEBUG_HPP
+
More information about the vlc-commits
mailing list