]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
libav: fix the previous change (debug libav option)
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2015 18:23:24 +0000 (20:23 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2015 18:23:24 +0000 (20:23 +0200)
src/libav.c
src/webui/static/app/tvhlog.js

index 916de4ffd6afcfdc6675a80495f2f889f4d39ad4..a2cfa37abf59a661af53c35d5a220b24f909e440 100644 (file)
@@ -10,6 +10,9 @@ libav_log_callback(void *ptr, int level, const char *fmt, va_list vl)
     char *nl;
     char *l;
 
+    if ((level == AV_LOG_DEBUG) && !(tvhlog_options & TVHLOG_OPT_LIBAV))
+      return;
+
     memset(message, 0, sizeof(message));
     vsnprintf(message, sizeof(message), fmt, vl);
 
index 3a9c45b052539be8b28d745ecb09e6d892b81514..aee2473138d6af2bb305be214a07db59336c03a7 100644 (file)
@@ -5,7 +5,7 @@ tvheadend.tvhlog = function(panel, index) {
     var confreader = new Ext.data.JsonReader({
         root: 'config'
     }, ['tvhlog_path', 'tvhlog_dbg_syslog', 'tvhlog_trace_on',
-        'tvhlog_debug', 'tvhlog_trace']);
+        'tvhlog_debug', 'tvhlog_trace', 'tvhlog_libav']);
 
     /* ****************************************************************
      * Form Fields