[vlc-commits] Revert "codec: hxxx_helper: make debug messages optional"
Francois Cartegnie
git at videolan.org
Fri Dec 21 17:32:51 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 21 17:32:35 2018 +0100| [c81797aed16cc837795d66325fff8fb18dc5f6da] | committer: Francois Cartegnie
Revert "codec: hxxx_helper: make debug messages optional"
This reverts commit e2ea601eea39704dbeb53ad709b6824e4b7e6bf6.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c81797aed16cc837795d66325fff8fb18dc5f6da
---
modules/codec/hxxx_helper.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/modules/codec/hxxx_helper.c b/modules/codec/hxxx_helper.c
index 4707f48049..33df5f6bce 100644
--- a/modules/codec/hxxx_helper.c
+++ b/modules/codec/hxxx_helper.c
@@ -32,9 +32,6 @@
#include "../packetizer/hxxx_nal.h"
#include "../packetizer/h264_slice.h"
-#define hxxx_helper_Debug(s, ...) \
- { if(hh->p_obj) msg_Dbg(hh->p_obj, s __VA_OPT__(,) __VA_ARGS__); }
-
void
hxxx_helper_init(struct hxxx_helper *hh, vlc_object_t *p_obj,
vlc_fourcc_t i_codec, bool b_need_xvcC)
@@ -216,7 +213,7 @@ h264_helper_parse_nal(struct hxxx_helper *hh, const uint8_t *p_buf, size_t i_buf
h264_decode_sps,
h264_release_sps);
hh->h264.i_current_sps = ((h264_sequence_parameter_set_t*)p_xps)->i_id;
- hxxx_helper_Debug("new SPS parsed: %u", hh->h264.i_current_sps);
+ msg_Dbg(hh->p_obj, "new SPS parsed: %u", hh->h264.i_current_sps);
}
else if (i_nal_type == H264_NAL_PPS)
{
@@ -225,7 +222,7 @@ h264_helper_parse_nal(struct hxxx_helper *hh, const uint8_t *p_buf, size_t i_buf
h264_picture_parameter_set_t,
h264_decode_pps,
h264_release_pps);
- hxxx_helper_Debug("new PPS parsed: %u", ((h264_picture_parameter_set_t*)p_xps)->i_id);
+ msg_Dbg(hh->p_obj, "new PPS parsed: %u", ((h264_picture_parameter_set_t*)p_xps)->i_id);
}
else if (i_nal_type <= H264_NAL_SLICE_IDR
&& i_nal_type != H264_NAL_UNKNOWN)
@@ -310,7 +307,7 @@ hevc_helper_parse_nal(struct hxxx_helper *hh, const uint8_t *p_buf, size_t i_buf
hevc_video_parameter_set_t,
hevc_decode_vps,
hevc_rbsp_release_vps);
- hxxx_helper_Debug("new VPS parsed: %u", i_id);
+ msg_Dbg(hh->p_obj, "new VPS parsed: %u", i_id);
}
else if (i_nal_type == HEVC_NAL_SPS)
{
@@ -322,7 +319,7 @@ hevc_helper_parse_nal(struct hxxx_helper *hh, const uint8_t *p_buf, size_t i_buf
hevc_sequence_parameter_set_t,
hevc_decode_sps,
hevc_rbsp_release_sps);
- hxxx_helper_Debug("new SPS parsed: %u", i_id);
+ msg_Dbg(hh->p_obj, "new SPS parsed: %u", i_id);
}
else if (i_nal_type == HEVC_NAL_PPS)
{
@@ -334,7 +331,7 @@ hevc_helper_parse_nal(struct hxxx_helper *hh, const uint8_t *p_buf, size_t i_buf
hevc_picture_parameter_set_t,
hevc_decode_pps,
hevc_rbsp_release_pps);
- hxxx_helper_Debug("new PPS parsed: %u", i_id);
+ msg_Dbg(hh->p_obj, "new PPS parsed: %u", i_id);
}
else if (i_nal_type <= HEVC_NAL_IRAP_VCL23)
{
@@ -439,7 +436,7 @@ h264_helper_set_extra(struct hxxx_helper *hh, const void *p_extra,
* -Thomas */
if (!hh->b_need_xvcC && hh->i_nal_length_size != 4)
{
- hxxx_helper_Debug("nal_length_size is too small");
+ msg_Dbg(hh->p_obj, "nal_length_size is too small");
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list