changeset 8387:17938f68e2e0

10l patch by Balatoni Denes <pnis@coder.hu>
author arpi
date Sat, 07 Dec 2002 01:07:11 +0000
parents 52a4ece3bbe2
children 45eb2d4d633c
files libmpdemux/demuxer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Sat Dec 07 01:01:25 2002 +0000
+++ b/libmpdemux/demuxer.c	Sat Dec 07 01:07:11 2002 +0000
@@ -1276,7 +1276,7 @@
 
 int demuxer_get_percent_pos(demuxer_t *demuxer){     
     int ans;     
-    if (demux_control(demuxer, DEMUXER_CTRL_GET_PERCENT_POS, &ans)<=DEMUXER_CTRL_OK)  {
+    if (demux_control(demuxer, DEMUXER_CTRL_GET_PERCENT_POS, &ans)<=0)  {
         ans=0;     
     }
     if (ans>100 || ans<0) ans=0;