summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-01-28 23:18:44 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-01-28 23:18:44 +0000
commitc459b9da7d7fe346bceeb4968fae6959aa0f7697 (patch)
tree6a61cbaa5bb89847fff1b0bebdc5d22621c594d0 /gst
parente6e86c4f2d5cd9213cb71a30dfdd9d9441e40ac9 (diff)
downloadgst-plugins-bad-c459b9da7d7fe346bceeb4968fae6959aa0f7697.tar.gz
gst-plugins-bad-c459b9da7d7fe346bceeb4968fae6959aa0f7697.tar.bz2
gst-plugins-bad-c459b9da7d7fe346bceeb4968fae6959aa0f7697.zip
gst/h264parse/gsth264parse.c: Try to avoid 'unused variable' compiler warning if debugging is disabled (not bullet pr...
Original commit message from CVS: * gst/h264parse/gsth264parse.c: (gst_h264_parse_chain_forward): Try to avoid 'unused variable' compiler warning if debugging is disabled (not bullet proof, but seems to do for now). (#512654)
Diffstat (limited to 'gst')
-rw-r--r--gst/h264parse/gsth264parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/h264parse/gsth264parse.c b/gst/h264parse/gsth264parse.c
index f40d83cd..dee03969 100644
--- a/gst/h264parse/gsth264parse.c
+++ b/gst/h264parse/gsth264parse.c
@@ -427,8 +427,10 @@ gst_h264_parse_chain_forward (GstH264Parse * h264parse, gboolean discont,
}
/* Figure out if this is a delta unit */
{
- gint nal_type = (data[4] & 0x1f);
- gint nal_ref_idc = (data[4] & 0x60) >> 5;
+ gint nal_type, nal_ref_idc;
+
+ nal_type = (data[4] & 0x1f);
+ nal_ref_idc = (data[4] & 0x60) >> 5;
GST_DEBUG_OBJECT (h264parse, "NAL type: %d, ref_idc: %d", nal_type,
nal_ref_idc);