aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-07-11 07:08:14 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-07-11 07:08:14 +0000
commit358afcd6beee2a68020dec915bebabd5f3e2a61e (patch)
tree7244e0cebd48eaa69dc03cac2fe835e397b616f2 /lib/python/Plugins
parent463c8a2b0f3ccac8d7e93656eb4ccdfea46fa202 (diff)
downloadenigma2-358afcd6beee2a68020dec915bebabd5f3e2a61e.tar.gz
enigma2-358afcd6beee2a68020dec915bebabd5f3e2a61e.zip
fix gui crash on dvdnav reporting uninitialized play positions
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp b/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp
index bbcb1f2b..26a3ba39 100644
--- a/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp
+++ b/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp
@@ -593,7 +593,10 @@ RESULT eServiceDVD::getPlayPosition(pts_t &pos)
pos += info.pos_minutes * 60;
pos += info.pos_seconds;
// eDebug("getPlayPosition %lld", pos);
- pos *= 90000;
+ if ( pos > 0 && pos < 32768 )
+ pos *= 90000;
+ else
+ pos = 0;
return 0;
}