Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
2506d446
Commit
2506d446
authored
Nov 24, 2015
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: fix null deref
parent
8cc97cc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/demux/adaptative/SegmentTracker.cpp
modules/demux/adaptative/SegmentTracker.cpp
+1
-1
No files found.
modules/demux/adaptative/SegmentTracker.cpp
View file @
2506d446
...
...
@@ -165,7 +165,7 @@ SegmentChunk * SegmentTracker::getNextChunk(bool switch_allowed, HTTPConnectionM
SegmentChunk
*
chunk
=
segment
->
toChunk
(
count
,
rep
,
connManager
);
/* We need to check segment/chunk format changes, as we can't rely on representation's (HLS)*/
if
(
format
!=
chunk
->
getStreamFormat
())
if
(
chunk
&&
format
!=
chunk
->
getStreamFormat
())
{
format
=
chunk
->
getStreamFormat
();
notify
(
SegmentTrackerEvent
(
&
format
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment