Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[pvr.hts] only add subtitle stream identifier for DVB subtitles

  • Loading branch information...
commit 1b36e0607a5e3a030b7ac28c3c6325c7b3b765d2 1 parent bdb0e70
Sam Stenvall Jalle19 authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 addons/pvr.hts/src/HTSPDemux.cpp
11 addons/pvr.hts/src/HTSPDemux.cpp
View
@@ -345,10 +345,13 @@ void CHTSPDemux::ParseSubscriptionStart(htsmsg_t *m)
if (codecId.Codec().codec_type == XBMC_CODEC_TYPE_SUBTITLE)
{
- uint32_t composition_id = 0, ancillary_id = 0;
- 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);
+ if (!strcmp(type, "DVBSUB"))
+ {
+ uint32_t composition_id = 0, ancillary_id = 0;
+ 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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.