handle invalid tracks better
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26913 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -442,6 +442,7 @@ movReader::GetStreamInfo(void *_cookie, int64 *frameCount, bigtime_t *duration,
|
||||
{
|
||||
mov_cookie *cookie = (mov_cookie *)_cookie;
|
||||
|
||||
if (cookie) {
|
||||
*frameCount = cookie->frame_count;
|
||||
*duration = cookie->duration;
|
||||
*format = cookie->format;
|
||||
@@ -456,6 +457,7 @@ movReader::GetStreamInfo(void *_cookie, int64 *frameCount, bigtime_t *duration,
|
||||
*infoBuffer = audio_format->theVOL;
|
||||
*infoSize = audio_format->VOLSize;
|
||||
}
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user