From 0c625beb6518916e625f92df9c4eb5b47f1264e6 Mon Sep 17 00:00:00 2001 From: phintuka Date: Mon, 13 Dec 2010 14:34:38 +0000 Subject: Return error fron read() if libbluray has reported fatal error --- xine/BluRay/input_bluray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xine/BluRay/input_bluray.c b/xine/BluRay/input_bluray.c index f53146d9..a51bc43a 100644 --- a/xine/BluRay/input_bluray.c +++ b/xine/BluRay/input_bluray.c @@ -603,7 +603,7 @@ static off_t bluray_plugin_read (input_plugin_t *this_gen, char *buf, off_t len) bluray_input_plugin_t *this = (bluray_input_plugin_t *) this_gen; off_t result; - if (!this || !this->bdh || len < 0) + if (!this || !this->bdh || len < 0 || this->error) return -1; handle_events(this); -- cgit v1.2.3