Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
[pvr.hts] only add subtitle stream identifier for DVB subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Jan 3, 2014
1 parent bdb0e70 commit 1b36e06
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions addons/pvr.hts/src/HTSPDemux.cpp
Expand Up @@ -345,10 +345,13 @@ void CHTSPDemux::ParseSubscriptionStart(htsmsg_t *m)


if (codecId.Codec().codec_type == XBMC_CODEC_TYPE_SUBTITLE) if (codecId.Codec().codec_type == XBMC_CODEC_TYPE_SUBTITLE)
{ {
uint32_t composition_id = 0, ancillary_id = 0; if (!strcmp(type, "DVBSUB"))
htsmsg_get_u32(sub, "composition_id", &composition_id); {
htsmsg_get_u32(sub, "ancillary_id" , &ancillary_id); uint32_t composition_id = 0, ancillary_id = 0;
newStream.iIdentifier = (composition_id & 0xffff) | ((ancillary_id & 0xffff) << 16); htsmsg_get_u32(sub, "composition_id", &composition_id);
htsmsg_get_u32(sub, "ancillary_id" , &ancillary_id);
newStream.iIdentifier = (composition_id & 0xffff) | ((ancillary_id & 0xffff) << 16);
}
HTSPSetDemuxStreamInfoLanguage(newStream, sub); HTSPSetDemuxStreamInfoLanguage(newStream, sub);
} }
} }
Expand Down

0 comments on commit 1b36e06

Please sign in to comment.