[libbluray-devel] Improve main title selection logging
hpi1
git at videolan.org
Fri May 12 08:13:57 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu May 11 14:41:26 2017 +0300| [24ebab3c62f913dee695b0f3da63ff6b84578802] | committer: hpi1
Improve main title selection logging
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=24ebab3c62f913dee695b0f3da63ff6b84578802
---
src/libbluray/bdnav/navigation.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/libbluray/bdnav/navigation.c b/src/libbluray/bdnav/navigation.c
index d2fbb9b0..0c6d0157 100644
--- a/src/libbluray/bdnav/navigation.c
+++ b/src/libbluray/bdnav/navigation.c
@@ -306,21 +306,24 @@ static int _pl_guess_main_title(MPLS_PL *p1, MPLS_PL *p2,
int chap_diff = chap2 - chap1;
if ((chap1 < 2 || chap2 < 2) && (chap_diff < -5 || chap_diff > 5)) {
/* chapter count differs by more than 5 */
- BD_DEBUG(DBG_MAIN_PL, "main title: chapter count difference %d\n", chap_diff);
+ BD_DEBUG(DBG_MAIN_PL, "main title (%s,%s): chapter count difference %d\n",
+ mpls_id1, mpls_id2, chap_diff);
return chap_diff;
}
/* Check video: prefer HD over SD, H.264/VC1 over MPEG1/2 */
int vid_diff = _cmp_video_props(p1, p2);
if (vid_diff) {
- BD_DEBUG(DBG_MAIN_PL, "main title: video properties difference %d\n", vid_diff);
+ BD_DEBUG(DBG_MAIN_PL, "main title (%s,%s): video properties difference %d\n",
+ mpls_id1, mpls_id2, vid_diff);
return vid_diff;
}
/* compare audio: prefer HD audio */
int aud_diff = _cmp_audio_props(p1, p2);
if (aud_diff) {
- BD_DEBUG(DBG_MAIN_PL, "main title: audio properties difference %d\n", aud_diff);
+ BD_DEBUG(DBG_MAIN_PL, "main title (%s,%s): audio properties difference %d\n",
+ mpls_id1, mpls_id2, aud_diff);
return aud_diff;
}
More information about the libbluray-devel
mailing list