From 2d245fcabb385347359759de8e6c40ce16e43cab Mon Sep 17 00:00:00 2001 From: Denis Loh Date: Thu, 19 Nov 2009 12:21:55 +0100 Subject: Added options for verbosity level and auto detect settings --- upnpcomponents/dlna.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'upnpcomponents/dlna.cpp') diff --git a/upnpcomponents/dlna.cpp b/upnpcomponents/dlna.cpp index eaa23c1..27f84f2 100644 --- a/upnpcomponents/dlna.cpp +++ b/upnpcomponents/dlna.cpp @@ -21,7 +21,7 @@ cDlna* cDlna::getInstance(void){ } cDlna::cDlna() { - this->mRegisteredProfiles = new cRegisteredProfiles; + this->mRegisteredProfiles = new cList; this->init(); } @@ -47,6 +47,8 @@ void cDlna::registerProfile(DLNAProfile* Profile, int Op, const char* Ps, int Ci void cDlna::registerMainProfiles(){ this->registerProfile(&DLNA_PROFILE_MPEG_TS_SD_EU, -1, NULL, -1, DLNA_FLAGS_PLUGIN_SUPPORT); this->registerProfile(&DLNA_PROFILE_AVC_TS_HD_EU, -1, NULL, -1, DLNA_FLAGS_PLUGIN_SUPPORT); + this->registerProfile(&DLNA_PROFILE_MPEG_TS_SD_EU_ISO, -1, NULL, -1, DLNA_FLAGS_PLUGIN_SUPPORT); + this->registerProfile(&DLNA_PROFILE_AVC_TS_HD_EU_ISO, -1, NULL, -1, DLNA_FLAGS_PLUGIN_SUPPORT); } const char* cDlna::getSupportedProtocols(){ @@ -73,9 +75,9 @@ DLNAProfile* cDlna::getProfileOfChannel(cChannel* Channel){ switch(Channel->Vtype()){ case 0x02: // MPEG2 Video - return &DLNA_PROFILE_MPEG_TS_SD_EU; + return &DLNA_PROFILE_MPEG_TS_SD_EU_ISO; case 0x1B: - return &DLNA_PROFILE_AVC_TS_HD_EU; + return &DLNA_PROFILE_AVC_TS_HD_EU_ISO; default: ERROR("Unknown video type %d for channel %s!", Channel->Vtype(), Channel->Name()); return NULL; -- cgit v1.2.3