[libbluray-devel] Improved logging of title selection failures
hpi1
git at videolan.org
Fri Oct 24 12:31:08 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Oct 23 11:32:08 2014 +0300| [7a3579dab14fa3cac84d2119e887c684019efe69] | committer: hpi1
Improved logging of title selection failures
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=7a3579dab14fa3cac84d2119e887c684019efe69
---
src/libbluray/bluray.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 8f3121b..5816e39 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2696,9 +2696,11 @@ int bd_start_bdj(BLURAY *bd, const char *start_object)
return _start_bdj(bd, ii);
}
}
+ BD_DEBUG(DBG_BLURAY | DBG_CRIT, "No %s.bdjo in disc index\n", start_object);
+ } else {
+ BD_DEBUG(DBG_BLURAY | DBG_CRIT, "No disc index\n");
}
- BD_DEBUG(DBG_BLURAY | DBG_CRIT, "No %s.bdjo in disc index\n", start_object);
return 0;
}
@@ -2970,6 +2972,7 @@ static int _play_title(BLURAY *bd, unsigned title)
if (!bd->disc_info.first_play_supported) {
/* no first play title (5.2.3.3) */
+ BD_DEBUG(DBG_BLURAY | DBG_CRIT, "_play_title(): No first play title\n");
bd->title_type = title_hdmv;
return 1;
}
@@ -2994,6 +2997,7 @@ static int _play_title(BLURAY *bd, unsigned title)
if (!bd->disc_info.top_menu_supported) {
/* no top menu (5.2.3.3) */
+ BD_DEBUG(DBG_BLURAY | DBG_CRIT, "_play_title(): No top menu title\n");
bd->title_type = title_hdmv;
return 0;
}
@@ -3016,6 +3020,8 @@ static int _play_title(BLURAY *bd, unsigned title)
} else {
return _play_hdmv(bd, bd->disc_info.titles[title]->id_ref);
}
+ } else {
+ BD_DEBUG(DBG_BLURAY | DBG_CRIT, "_play_title(#%d): Title not found\n", title);
}
return 0;
More information about the libbluray-devel
mailing list