ogg_sync_reset is better than ogg_sync_clear
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5781 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -286,8 +286,8 @@ oggReader::Seek(void *cookie,
|
|||||||
*time = filePositionToTime(position);
|
*time = filePositionToTime(position);
|
||||||
|
|
||||||
// TODO: use B_MEDIA_SEEK_CLOSEST_BACKWARD, B_MEDIA_SEEK_CLOSEST_FORWARD to find key frame
|
// TODO: use B_MEDIA_SEEK_CLOSEST_BACKWARD, B_MEDIA_SEEK_CLOSEST_FORWARD to find key frame
|
||||||
if (ogg_sync_clear(&fSync) != 0) {
|
if (ogg_sync_reset(&fSync) != 0) {
|
||||||
TRACE("oggReader::Seek: ogg_sync_clear failed?: error\n");
|
TRACE("oggReader::Seek: ogg_sync_reset failed?: error\n");
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
if (ogg_stream_reset(stream) != 0) {
|
if (ogg_stream_reset(stream) != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user