summaryrefslogtreecommitdiffstats
path: root/libhb/bd.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-18 17:01:18 -0600
committerJohn Stebbins <[email protected]>2016-05-25 10:21:18 -0600
commitcfd756af552be892d40831a56d6fed1817e4a93c (patch)
tree1e0924add86a89e1e76a945b0cb25e65511a9af6 /libhb/bd.c
parent9dabe455a7b9f4917c1f36c3229c8fb9914a3fc4 (diff)
bd: log playlist clips at log level 2
Diffstat (limited to 'libhb/bd.c')
-rw-r--r--libhb/bd.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/libhb/bd.c b/libhb/bd.c
index 16f79dc4c..e5fb6e83d 100644
--- a/libhb/bd.c
+++ b/libhb/bd.c
@@ -234,6 +234,24 @@ static int bd_audio_equal( BLURAY_CLIP_INFO *a, BLURAY_CLIP_INFO *b )
return 1;
}
+static void show_clip_list( BLURAY_TITLE_INFO * ti )
+{
+ int ii;
+
+ for (ii = 0; ii < ti->clip_count; ii++)
+ {
+ BLURAY_CLIP_INFO * ci = &ti->clips[ii];
+ int64_t duration = ci->out_time - ci->in_time;
+ int hh, mm, ss;
+
+ hh = duration / (90000 * 60 * 60);
+ mm = (duration / (90000 * 60)) % 60;
+ ss = (duration / 90000) % 60;
+ hb_log("bd:\t\t%s.M2TS -- Duration: %02d:%02d:%02d",
+ ti->clips[ii].clip_id, hh, mm, ss);
+ }
+}
+
/***********************************************************************
* hb_bd_title_scan
**********************************************************************/
@@ -314,6 +332,10 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
hb_log( "bd: ignoring title (too short)" );
goto fail;
}
+ if (global_verbosity_level >= 2)
+ {
+ show_clip_list(ti);
+ }
BLURAY_STREAM_INFO * bdvideo = &ti->clips[0].video_streams[0];