[libbluray-devel] Updated xine plugin to support BD_EVENT_IDLE

hpi1 git at videolan.org
Tue Feb 5 21:15:54 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Feb  5 22:14:32 2013 +0200| [2e40d6e5fae67b855bd49d86f0dd3d8dd33dd554] | committer: hpi1

Updated xine plugin to support BD_EVENT_IDLE

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=2e40d6e5fae67b855bd49d86f0dd3d8dd33dd554
---

 player_wrappers/xine/input_bluray.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/player_wrappers/xine/input_bluray.c b/player_wrappers/xine/input_bluray.c
index bda29a2..c899d9f 100644
--- a/player_wrappers/xine/input_bluray.c
+++ b/player_wrappers/xine/input_bluray.c
@@ -640,6 +640,10 @@ static void handle_libbluray_event(bluray_input_plugin_t *this, BD_EVENT ev)
         }
         break;
 
+      case BD_EVENT_IDLE:
+        xine_usec_sleep(10000);
+        break;
+
       /* playback position */
 
       case BD_EVENT_ANGLE:
@@ -1003,10 +1007,6 @@ static off_t bluray_plugin_read (input_plugin_t *this_gen, void *buf, off_t len)
         handle_events(this);
         CHECK_READ_INTERRUPT;
       }
-      if (result == -1) {
-        xine_usec_sleep(10000);
-        result = 0;
-      }
     } while (!this->error && result == 0);
 
   } else {



More information about the libbluray-devel mailing list