[xiph-commits] r3036 - liboggplay/trunk/src/liboggplay
shans at svn.annodex.net
shans at svn.annodex.net
Sun Jun 24 18:28:31 PDT 2007
Author: shans
Date: 2007-06-24 18:28:30 -0700 (Sun, 24 Jun 2007)
New Revision: 3036
Modified:
liboggplay/trunk/src/liboggplay/oggplay_seek.c
Log:
Guard against seeking backwards before 0
Modified: liboggplay/trunk/src/liboggplay/oggplay_seek.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_seek.c 2007-06-25 01:21:48 UTC (rev 3035)
+++ liboggplay/trunk/src/liboggplay/oggplay_seek.c 2007-06-25 01:28:30 UTC (rev 3036)
@@ -50,6 +50,10 @@
return E_OGGPLAY_BAD_OGGPLAY;
}
+ if (milliseconds < 0) {
+ return E_OGGPLAY_CANT_SEEK;
+ }
+
if (me->reader->seek != NULL) {
if
(
More information about the commits
mailing list