improved media_header usage
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6420 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
313aa5fc08
commit
a6423eea41
@ -130,6 +130,8 @@ BMediaTrack::ReadFrames(void *out_buffer,
|
||||
media_header temp_header;
|
||||
if (!mh)
|
||||
mh = &temp_header;
|
||||
else
|
||||
memset(mh, 0, sizeof(*mh)); // clear it first, as the decoder doesn't set all fields
|
||||
|
||||
result = fDecoder->Decode(out_buffer, out_frameCount, mh, info);
|
||||
if (result == B_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user