* (bug 3567) Fix to error handling in Ogg decoder (Joerg Dietrich)
This commit is contained in:
parent
b5a220359b
commit
6a213889dc
1 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@ int S_OGG_Callback_seek(void *datasource, ogg_int64_t offset, int whence)
|
||||||
retVal = FS_Seek(stream->file, (long) offset, FS_SEEK_SET);
|
retVal = FS_Seek(stream->file, (long) offset, FS_SEEK_SET);
|
||||||
|
|
||||||
// something has gone wrong, so we return here
|
// something has gone wrong, so we return here
|
||||||
if(!(retVal == 0))
|
if(retVal < 0)
|
||||||
{
|
{
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ int S_OGG_Callback_seek(void *datasource, ogg_int64_t offset, int whence)
|
||||||
retVal = FS_Seek(stream->file, (long) offset, FS_SEEK_CUR);
|
retVal = FS_Seek(stream->file, (long) offset, FS_SEEK_CUR);
|
||||||
|
|
||||||
// something has gone wrong, so we return here
|
// something has gone wrong, so we return here
|
||||||
if(!(retVal == 0))
|
if(retVal < 0)
|
||||||
{
|
{
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ int S_OGG_Callback_seek(void *datasource, ogg_int64_t offset, int whence)
|
||||||
retVal = FS_Seek(stream->file, (long) stream->length + (long) offset, FS_SEEK_SET);
|
retVal = FS_Seek(stream->file, (long) stream->length + (long) offset, FS_SEEK_SET);
|
||||||
|
|
||||||
// something has gone wrong, so we return here
|
// something has gone wrong, so we return here
|
||||||
if(!(retVal == 0))
|
if(retVal < 0)
|
||||||
{
|
{
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue