[libbluray-devel] _play_hdmv(): stop BD-J before changing title type

cb2000 git at videolan.org
Wed Sep 12 22:02:04 CEST 2012


libbluray | branch: master | cb2000 <cb2000 at anonymous.org> | Wed Sep 12 14:34:10 2012 +0300| [11e21a53f96b5e91e80568fd466351992f8e6ce6] | committer: hpi1

_play_hdmv(): stop BD-J before changing title type

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 2ce3f13..d5cb4a2 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2155,12 +2155,12 @@ static int _play_hdmv(BLURAY *bd, unsigned id_ref)
 {
     int result = 1;
 
-    bd->title_type = title_hdmv;
-
 #ifdef USING_BDJAVA
     bd_stop_bdj(bd);
 #endif
 
+    bd->title_type = title_hdmv;
+
     if (!bd->hdmv_vm) {
         bd->hdmv_vm = hdmv_vm_init(bd->device_path, bd->regs, bd->index);
     }



More information about the libbluray-devel mailing list