seek fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5585 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -55,6 +55,7 @@ mp3Decoder::Seek(uint32 seekTo,
|
|||||||
{
|
{
|
||||||
ExitMP3(&fMpgLibPrivate);
|
ExitMP3(&fMpgLibPrivate);
|
||||||
InitMP3(&fMpgLibPrivate);
|
InitMP3(&fMpgLibPrivate);
|
||||||
|
fResidualBytes = 0;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ mp3Decoder::Decode(void *buffer, int64 *frameCount,
|
|||||||
int32 chunkSize;
|
int32 chunkSize;
|
||||||
if (B_OK != GetNextChunk(&chunkBuffer, &chunkSize, mediaHeader)) {
|
if (B_OK != GetNextChunk(&chunkBuffer, &chunkSize, mediaHeader)) {
|
||||||
TRACE("mp3Decoder::Decode: GetNextChunk failed\n");
|
TRACE("mp3Decoder::Decode: GetNextChunk failed\n");
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
int outsize;
|
int outsize;
|
||||||
|
|||||||
Reference in New Issue
Block a user