summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2012-12-31 18:46:13 +0200
committerPetri Hintukainen <phintuka@users.sourceforge.net>2012-12-31 18:46:13 +0200
commit8275971c95089fd6dcb4e660fd5c075c6401ba7b (patch)
tree3bda0d3b86d94d3f97dfbb9b86b30d88802ff832
parent9152e575ae53aa1c79ec7d41a96add4301af2e21 (diff)
downloadvdr-plugin-bluray-8275971c95089fd6dcb4e660fd5c075c6401ba7b.tar.gz
vdr-plugin-bluray-8275971c95089fd6dcb4e660fd5c075c6401ba7b.tar.bz2
Fixed incorrect end of title
-rw-r--r--bdplayer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bdplayer.c b/bdplayer.c
index 96a31a7..631bfcd 100644
--- a/bdplayer.c
+++ b/bdplayer.c
@@ -146,9 +146,10 @@ bool cBDPlayer::DoRead()
packs = bd_read_ext(bd, buffer, ALIGNED_UNIT_SIZE, &ev);
if (packs == 0) {
- // EOF
- isyslog("End of title");
- Cancel(-1);
+ if (ev.event == BD_EVENT_NONE) {
+ // title without video
+ cCondWait::SleepMs(3);
+ }
} else if (packs < 0) {
// ERROR
esyslog("bd_read() error");