Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #108 from FernetMenta/vnsi

Vnsi fixes, segfaults
  • Loading branch information...
commit e224848d0fd25f9845324d2d401e5bcd607420fd 2 parents c1645d6 + 76487ee
@FernetMenta FernetMenta authored
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;
View
4 addons/pvr.vdr.vnsi/src/responsepacket.cpp
@@ -87,6 +87,8 @@ void cResponsePacket::extractHeader()
requestID = extract_U32();
userDataLength = extract_U32();
+
+ userData = NULL;
}
void cResponsePacket::extractStreamHeader()
@@ -104,6 +106,8 @@ void cResponsePacket::extractStreamHeader()
pts = extract_U64();
dts = extract_U64();
userDataLength = extract_U32();
+
+ userData = NULL;
}
bool cResponsePacket::end()

0 comments on commit e224848

Please sign in to comment.
Something went wrong with that request. Please try again.