[libbluray-devel] Removed gcc extension

hpi1 git at videolan.org
Sat May 7 11:11:06 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat May  7 12:10:44 2011 +0300| [63e3db447aebc5b04eb60b4ca74b5702d52989a0] | committer: hpi1

Removed gcc extension

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 845b4fe..c470862 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -747,7 +747,8 @@ static int _libbdplus_open(BLURAY *bd, const char *keyfile_path)
         return 0;
     }
 
-    bd->bdplus = bd->bdplus_init(bd->device_path, keyfile_path, _libaacs_get_vid(bd) ?: vid);
+    const uint8_t *aacs_vid = (const uint8_t *)_libaacs_get_vid(bd);
+    bd->bdplus = bd->bdplus_init(bd->device_path, keyfile_path, aacs_vid ? aacs_vid : vid);
 
     if (bd->bdplus) {
         BD_DEBUG(DBG_BLURAY,"libbdplus initialized\n");



More information about the libbluray-devel mailing list