[libbluray-devel] _play_hdmv(): always update hdmv_suspended flag

hpi1 git at videolan.org
Fri Jun 10 14:28:35 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Jun 10 15:27:58 2011 +0300| [e6f41093cff692e9f1f70c1b5e1f8737515c52db] | committer: hpi1

_play_hdmv(): always update hdmv_suspended flag

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

 src/libbluray/bluray.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 7f9807b..b149ecb 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1823,6 +1823,8 @@ static int _play_bdj(BLURAY *bd, const char *name)
 
 static int _play_hdmv(BLURAY *bd, unsigned id_ref)
 {
+    int result = 1;
+
     bd->title_type = title_hdmv;
 
 #ifdef USING_BDJAVA
@@ -1834,12 +1836,12 @@ static int _play_hdmv(BLURAY *bd, unsigned id_ref)
     }
 
     if (hdmv_vm_select_object(bd->hdmv_vm, id_ref)) {
-        return 0;
+        result = 0;
     }
 
     bd->hdmv_suspended = !hdmv_vm_running(bd->hdmv_vm);
 
-    return 1;
+    return result;
 }
 
 static int _play_title(BLURAY *bd, unsigned title)



More information about the libbluray-devel mailing list