[libbluray-devel] bd_info: print library version
hpi1
git at videolan.org
Thu May 4 13:46:50 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu May 4 12:11:57 2017 +0300| [950a722db1d5e4c226510adfc15268edc1be85b8] | committer: hpi1
bd_info: print library version
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=950a722db1d5e4c226510adfc15268edc1be85b8
---
src/examples/bd_info.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/examples/bd_info.c b/src/examples/bd_info.c
index 9fcd33e2..e5a8dd8c 100644
--- a/src/examples/bd_info.c
+++ b/src/examples/bd_info.c
@@ -143,9 +143,13 @@ static void _print_app_info(const BLURAY_DISC_INFO *info)
int main(int argc, char *argv[])
{
+ int major, minor, micro;
const char *disc_root = (argc > 1) ? argv[1] : NULL;
const char *keyfile = (argc > 2) ? argv[2] : NULL;
+ bd_get_version(&major, &minor, µ);
+ printf("Using libbluray version %d.%d.%d\n", major, minor, micro);
+
if (!disc_root) {
fprintf(stderr,
"%s <BD base dir> [keyfile]\n"
More information about the libbluray-devel
mailing list