Skip to content

Fix for dispose function in HLS.as#1

Open
suuhas wants to merge 1 commit intodevfrom
suuhas-patch-1
Open

Fix for dispose function in HLS.as#1
suuhas wants to merge 1 commit intodevfrom
suuhas-patch-1

Conversation

@suuhas
Copy link
Owner

@suuhas suuhas commented Apr 1, 2015

while disposing HLS stream it throws a NPE,
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.mangui.hls.stream::StreamBuffer/stop()[flashls/src/org/mangui/hls/stream/StreamBuffer.as:87]
at org.mangui.hls.stream::HLSNetStream/close()[flashls/src/org/mangui/hls/stream/HLSNetStream.as:346]
at org.mangui.hls.stream::HLSNetStream/dispose_()[flashls/src/org/mangui/hls/stream/HLSNetStream.as:353]
at org.mangui.hls::HLS/dispose()[flashls/src/org/mangui/hls/HLS.as:81]

Fixed it by disposing _hlsNetStream first and then disposing _streamBuffer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant