[Redbutton-devel] SF.net SVN: redbutton: [242] redbutton-download/trunk/findmheg.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-03-12 12:21:21
|
Revision: 242
http://svn.sourceforge.net/redbutton/?rev=242&view=rev
Author: skilvington
Date: 2007-03-12 05:21:15 -0700 (Mon, 12 Mar 2007)
Log Message:
-----------
don't be so specific about the application_type_code we accept
Modified Paths:
--------------
redbutton-download/trunk/findmheg.c
Modified: redbutton-download/trunk/findmheg.c
===================================================================
--- redbutton-download/trunk/findmheg.c 2007-03-09 16:40:47 UTC (rev 241)
+++ redbutton-download/trunk/findmheg.c 2007-03-12 12:21:15 UTC (rev 242)
@@ -77,8 +77,9 @@
} __attribute__((__packed__));
/* data_broadcast_id_descriptor values we want */
-#define DATA_BROADCAST_ID 0x0106
-#define APPLICATION_TYPE_CODE 0x0101
+#define DATA_BROADCAST_ID 0x0106
+#define UK_APPLICATION_TYPE_CODE 0x0101
+#define NZ_APPLICATION_TYPE_CODE 0x0505
static struct avstreams *find_current_avstreams(struct carousel *, int, int);
static struct avstreams *find_service_avstreams(struct carousel *, int, int, int);
@@ -189,11 +190,17 @@
{
struct data_broadcast_id_descriptor *desc;
desc = (struct data_broadcast_id_descriptor *) &pmt[offset];
- if(ntohs(desc->data_broadcast_id) == DATA_BROADCAST_ID
- && ntohs(desc->application_type_code) == APPLICATION_TYPE_CODE)
+ if(ntohs(desc->data_broadcast_id) == DATA_BROADCAST_ID)
{
desc_boot_pid = elementary_pid;
vverbose("PID=%u boot_priority_hint=%u", elementary_pid, desc->boot_priority_hint);
+ /* haven't seen the NZ MHEG Profile, but let's download the data anyway */
+ if(ntohs(desc->application_type_code) == UK_APPLICATION_TYPE_CODE)
+ vverbose("UK application_type_code (0x%04x)", UK_APPLICATION_TYPE_CODE);
+ else if(ntohs(desc->application_type_code) == NZ_APPLICATION_TYPE_CODE)
+ vverbose("NZ application_type_code (0x%04x)", NZ_APPLICATION_TYPE_CODE);
+ else
+ vverbose("Unknown application_type_code (0x%04x)", ntohs(desc->application_type_code));
}
else
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|