Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

vnsi: set stream count to zero in case of invalid data during StreamC…

…hange
  • Loading branch information...
commit f377595dac9860e863d9d54a12e508e01cc78c87 1 parent c1645d6
@FernetMenta authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 addons/pvr.vdr.vnsi/src/VNSIDemux.cpp
View
10 addons/pvr.vdr.vnsi/src/VNSIDemux.cpp
@@ -299,6 +299,11 @@ void cVNSIDemux::StreamChange(cResponsePacket *resp)
streams.stream[streams.iStreamCount].iCodecType = AVMEDIA_TYPE_SUBTITLE;
streams.stream[streams.iStreamCount].iCodecId = CODEC_ID_DVB_TELETEXT;
}
+ else
+ {
+ m_Streams.iStreamCount = 0;
+ return;
+ }
if (streams.stream[streams.iStreamCount].iCodecType == AVMEDIA_TYPE_AUDIO)
{
@@ -347,6 +352,11 @@ void cVNSIDemux::StreamChange(cResponsePacket *resp)
delete[] language;
}
+ else
+ {
+ m_Streams.iStreamCount = 0;
+ return;
+ }
delete[] type;
Please sign in to comment.
Something went wrong with that request. Please try again.