From 2445021120cf64e8fc830d2849bd145169924173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 11 Aug 2017 14:21:05 +0100 Subject: [PATCH] codecparsers: make debug categories static They're only used internally. The VP9 parser's debug category symbol was accidentally exported. --- gst-libs/gst/codecparsers/gsth264parser.c | 2 +- gst-libs/gst/codecparsers/gsth265parser.c | 2 +- gst-libs/gst/codecparsers/gstmpegvideometa.c | 2 +- gst-libs/gst/codecparsers/gstmpegvideoparser.c | 2 +- gst-libs/gst/codecparsers/gstvp8parser.c | 2 +- gst-libs/gst/codecparsers/gstvp9parser.c | 2 +- win32/common/libgstcodecparsers.def | 1 - 7 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index 86c5e44cc0..3b3ba7488c 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -80,7 +80,7 @@ #include #include -GST_DEBUG_CATEGORY (h264_parser_debug); +GST_DEBUG_CATEGORY_STATIC (h264_parser_debug); #define GST_CAT_DEFAULT h264_parser_debug static gboolean initialized = FALSE; diff --git a/gst-libs/gst/codecparsers/gsth265parser.c b/gst-libs/gst/codecparsers/gsth265parser.c index fd56f15d04..e7d56be9cc 100644 --- a/gst-libs/gst/codecparsers/gsth265parser.c +++ b/gst-libs/gst/codecparsers/gsth265parser.c @@ -72,7 +72,7 @@ #include #include -GST_DEBUG_CATEGORY (h265_parser_debug); +GST_DEBUG_CATEGORY_STATIC (h265_parser_debug); #define GST_CAT_DEFAULT h265_parser_debug static gboolean initialized = FALSE; diff --git a/gst-libs/gst/codecparsers/gstmpegvideometa.c b/gst-libs/gst/codecparsers/gstmpegvideometa.c index 0e833adeac..4b9a71bacb 100644 --- a/gst-libs/gst/codecparsers/gstmpegvideometa.c +++ b/gst-libs/gst/codecparsers/gstmpegvideometa.c @@ -24,7 +24,7 @@ #include "gstmpegvideometa.h" -GST_DEBUG_CATEGORY (mpegv_meta_debug); +GST_DEBUG_CATEGORY_STATIC (mpegv_meta_debug); #define GST_CAT_DEFAULT mpegv_meta_debug static gboolean diff --git a/gst-libs/gst/codecparsers/gstmpegvideoparser.c b/gst-libs/gst/codecparsers/gstmpegvideoparser.c index 6f1b494196..a9d575ff22 100644 --- a/gst-libs/gst/codecparsers/gstmpegvideoparser.c +++ b/gst-libs/gst/codecparsers/gstmpegvideoparser.c @@ -119,7 +119,7 @@ static const VLCTable mpeg2_mbaddr_vlc_table[] = { {GST_MPEG_VIDEO_MACROBLOCK_ESCAPE, 0x08, 11} }; -GST_DEBUG_CATEGORY (mpegvideo_parser_debug); +GST_DEBUG_CATEGORY_STATIC (mpegvideo_parser_debug); #define GST_CAT_DEFAULT mpegvideo_parser_debug #define INITIALIZE_DEBUG_CATEGORY \ diff --git a/gst-libs/gst/codecparsers/gstvp8parser.c b/gst-libs/gst/codecparsers/gstvp8parser.c index 7a13a89da9..ee9185865c 100644 --- a/gst-libs/gst/codecparsers/gstvp8parser.c +++ b/gst-libs/gst/codecparsers/gstvp8parser.c @@ -39,7 +39,7 @@ #include "gstvp8rangedecoder.h" #include "vp8utils.h" -GST_DEBUG_CATEGORY (vp8_parser_debug); +GST_DEBUG_CATEGORY_STATIC (vp8_parser_debug); #define GST_CAT_DEFAULT vp8_parser_debug #define INITIALIZE_DEBUG_CATEGORY ensure_debug_category () diff --git a/gst-libs/gst/codecparsers/gstvp9parser.c b/gst-libs/gst/codecparsers/gstvp9parser.c index 66e40db5c0..49cf171475 100644 --- a/gst-libs/gst/codecparsers/gstvp9parser.c +++ b/gst-libs/gst/codecparsers/gstvp9parser.c @@ -45,7 +45,7 @@ /* order of sb64, where sb64 = 64x64 */ #define ALIGN_SB64(w) ((w + 63) >> 6) -GST_DEBUG_CATEGORY (gst_vp9_parser_debug); +GST_DEBUG_CATEGORY_STATIC (gst_vp9_parser_debug); #define GST_CAT_DEFAULT gst_vp9_parser_debug static gboolean initialized = FALSE; diff --git a/win32/common/libgstcodecparsers.def b/win32/common/libgstcodecparsers.def index fc5889892b..4e3cfa208d 100644 --- a/win32/common/libgstcodecparsers.def +++ b/win32/common/libgstcodecparsers.def @@ -115,7 +115,6 @@ EXPORTS gst_vp8_range_decoder_init gst_vp8_range_decoder_read gst_vp8_range_decoder_read_literal - gst_vp9_parser_debug DATA gst_vp9_parser_free gst_vp9_parser_new gst_vp9_parser_parse_frame_header