[libbluray-devel] Minor optimization

hpi1 git at videolan.org
Wed Sep 12 12:54:44 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Sep 12 13:45:59 2012 +0300| [0c8a7c691524af0f449ddc73447b57dd02a03079] | committer: hpi1

Minor optimization

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

 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 62742b5..30c48a1 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1499,12 +1499,12 @@ static int _preload_ig_subpath(BLURAY *bd)
     int      ig_subpath = -1;
     uint16_t ig_pid     = 0;
 
-    _find_ig_stream(bd, &ig_pid, &ig_subpath);
-
     if (!bd->graphics_controller) {
         return 0;
     }
 
+    _find_ig_stream(bd, &ig_pid, &ig_subpath);
+
     if (ig_subpath < 0) {
         return 0;
     }



More information about the libbluray-devel mailing list