Unverified Commit 2737bc9d authored by Jean-Andre Santoni's avatar Jean-Andre Santoni Committed by GitHub
Browse files

Fix ogg seek. Fixes #218 (#220)

* Fix ogg seek. Fixes #218

* Typo
parent 57fabf7b
Pipeline #39632 passed with stages
in 8 minutes and 52 seconds
......@@ -586,11 +586,13 @@ int source_seek(lua_State *L)
}
self->sndpos = decWav_sampleTell(self->wavData);
}
if (self->oggData)
else if (self->oggData)
{
decOgg_seek(self->oggData, npSamples);
self->sndpos = decWav_sampleTell(self->wavData);
if (!decOgg_seek(self->oggData, npSamples))
{
fprintf(stderr, "OGG decoder seek failed: %s\n", strerror(errno));
}
self->sndpos = decOgg_sampleTell(self->oggData);
}
if (self->sndta)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment