diff options
author | phintuka <phintuka> | 2007-04-09 16:22:40 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-04-09 16:22:40 +0000 |
commit | 6f8b88544dcfce12cd46c62b2c97627ef142c490 (patch) | |
tree | be5145b74af04b100036f7130f4eaa6f191ab44c | |
parent | 202098f8d55147fdfb96672b408b9aa3e128d32d (diff) | |
download | xineliboutput-6f8b88544dcfce12cd46c62b2c97627ef142c490.tar.gz xineliboutput-6f8b88544dcfce12cd46c62b2c97627ef142c490.tar.bz2 |
Do not save resume positions <= 0
-rw-r--r-- | media_player.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media_player.c b/media_player.c index 2c8cc7f0..86221537 100644 --- a/media_player.c +++ b/media_player.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: media_player.c,v 1.24 2007-04-02 14:36:18 phintuka Exp $ + * $Id: media_player.c,v 1.25 2007-04-09 16:22:40 phintuka Exp $ * */ @@ -266,7 +266,7 @@ void cXinelibPlayer::Activate(bool On) if(m_UseResume && *m_ResumeFile) { pos = cXinelibDevice::Instance().PlayFileCtrl("GETPOS"); len = cXinelibDevice::Instance().PlayFileCtrl("GETLENGTH"); - if(pos>=0 && pos < (len-10000)) { + if(pos>10000 && pos < (len-10000)) { pos = (pos/1000) - 10; // skip back 10 seconds ("VDR style") if(0 <= (fd = open(m_ResumeFile, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH))) { |