Patch by Barrett:

Initialize the stream's IO buffer, otherwise it could crash in ~StreamBase().
It's only initialized when the media format was actually successfully probed.
Fix #6595. Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39374 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2010-11-09 15:46:23 +00:00
parent 2778794cff
commit 801843aed6
@@ -229,6 +229,8 @@ StreamBase::StreamBase(BPositionIO* source, BLocker* sourceLock,
fStreamBuildsIndexWhileReading(false) fStreamBuildsIndexWhileReading(false)
{ {
// NOTE: Don't use streamLock here, it may not yet be initialized! // NOTE: Don't use streamLock here, it may not yet be initialized!
fIOContext.buffer = NULL;
av_new_packet(&fPacket, 0); av_new_packet(&fPacket, 0);
memset(&fFormat, 0, sizeof(media_format)); memset(&fFormat, 0, sizeof(media_format));
} }