From 07e5dd5b93f8133922ace9223cfa24430c8c622a Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 28 Dec 2003 07:21:33 +0000 Subject: [PATCH] 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 --- src/add-ons/media/plugins/ogg/OggReaderPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/media/plugins/ogg/OggReaderPlugin.cpp b/src/add-ons/media/plugins/ogg/OggReaderPlugin.cpp index 44131d5cd4..22a7713c96 100644 --- a/src/add-ons/media/plugins/ogg/OggReaderPlugin.cpp +++ b/src/add-ons/media/plugins/ogg/OggReaderPlugin.cpp @@ -286,8 +286,8 @@ oggReader::Seek(void *cookie, *time = filePositionToTime(position); // TODO: use B_MEDIA_SEEK_CLOSEST_BACKWARD, B_MEDIA_SEEK_CLOSEST_FORWARD to find key frame - if (ogg_sync_clear(&fSync) != 0) { - TRACE("oggReader::Seek: ogg_sync_clear failed?: error\n"); + if (ogg_sync_reset(&fSync) != 0) { + TRACE("oggReader::Seek: ogg_sync_reset failed?: error\n"); return B_ERROR; } if (ogg_stream_reset(stream) != 0) {