[Redbutton-devel] SF.net SVN: redbutton: [158] redbutton-download/trunk/findmheg.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2006-12-14 13:44:44
|
Revision: 158
http://svn.sourceforge.net/redbutton/?rev=158&view=rev
Author: skilvington
Date: 2006-12-14 05:44:43 -0800 (Thu, 14 Dec 2006)
Log Message:
-----------
output PIDs in decimal rather than hex in verbose mode
Modified Paths:
--------------
redbutton-download/trunk/findmheg.c
Modified: redbutton-download/trunk/findmheg.c
===================================================================
--- redbutton-download/trunk/findmheg.c 2006-12-14 13:39:40 UTC (rev 157)
+++ redbutton-download/trunk/findmheg.c 2006-12-14 13:44:43 UTC (rev 158)
@@ -149,9 +149,9 @@
}
if(!found)
- fatal("Unable to find programme_map_PID for service_id %u", service_id);
+ fatal("Unable to find PMT PID for service_id %u", service_id);
- vverbose("programme_map_PID: 0x%x", map_pid);
+ vverbose("PMT PID: %u", map_pid);
/* get the PMT */
if((pmt = read_table(_car.demux_device, map_pid, TID_PMT, timeout)) == NULL)
@@ -196,7 +196,7 @@
{
_car.carousel_id = ntohl(desc->carousel_id);
add_dsmcc_pid(&_car, elementary_pid);
- vverbose("pid=0x%x carousel_id=%u", elementary_pid, _car.carousel_id);
+ vverbose("PID=%u carousel_id=%u", elementary_pid, _car.carousel_id);
}
}
else if(desc_tag == TAG_STREAM_ID_DESCRIPTOR)
@@ -204,7 +204,7 @@
struct stream_id_descriptor *desc;
desc = (struct stream_id_descriptor *) &pmt[offset];
component_tag = desc->component_tag;
- vverbose("pid=0x%x component_tag=0x%x", elementary_pid, component_tag);
+ vverbose("PID=%u component_tag=%u", elementary_pid, component_tag);
add_assoc(&_car.assoc, elementary_pid, desc->component_tag, stream_type);
}
else if(desc_tag == TAG_LANGUAGE_DESCRIPTOR && is_audio_stream(stream_type))
@@ -220,7 +220,7 @@
}
else
{
- vverbose("pid=0x%x descriptor=0x%x", elementary_pid, desc_tag);
+ vverbose("PID=%u descriptor=0x%x", elementary_pid, desc_tag);
vhexdump(&pmt[offset], desc_length);
}
offset += desc_length;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|