diff options
Diffstat (limited to 'database/resources.cpp')
-rw-r--r-- | database/resources.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/database/resources.cpp b/database/resources.cpp index f681a54..df2b354 100644 --- a/database/resources.cpp +++ b/database/resources.cpp @@ -101,6 +101,12 @@ int cUPnPResources::createFromChannel(cUPnPClassVideoBroadcast* Object, cChannel } DLNAProfile* Profile = cDlna::getInstance()->getProfileOfChannel(Channel); + + if(!Profile){ + ERROR("No profile found for Channel %s", *Channel->GetChannelID().ToString()); + return -1; + } + const char* ProtocolInfo = cDlna::getInstance()->getProtocolInfo(Profile); MESSAGE("Protocol info: %s", ProtocolInfo); |