From 2e40d6e5fae67b855bd49d86f0dd3d8dd33dd554 Mon Sep 17 00:00:00 2001 From: hpi1 Date: Tue, 5 Feb 2013 22:14:32 +0200 Subject: [PATCH] Updated xine plugin to support BD_EVENT_IDLE --- 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 bda29a2b..c899d9f8 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 {