Commit 3253e62a authored by hpi1's avatar hpi1

Added bd_seek_playitem() for HDMV_EVENT_PLAY_PI

parent 894441d1
...@@ -900,6 +900,26 @@ uint32_t bd_get_current_chapter(BLURAY *bd) ...@@ -900,6 +900,26 @@ uint32_t bd_get_current_chapter(BLURAY *bd)
return 0; return 0;
} }
int64_t bd_seek_playitem(BLURAY *bd, unsigned clip_ref)
{
uint32_t clip_pkt, out_pkt;
NAV_CLIP *clip;
if (bd->title &&
clip_ref < bd->title->clip_list.count) {
_change_angle(bd);
clip = &bd->title->clip_list.clip[clip_ref];
clip_pkt = clip->start_pkt;
out_pkt = clip->pos;
return _seek_internal(bd, clip, out_pkt, clip_pkt);
}
return bd->s_pos;
}
int64_t bd_seek_mark(BLURAY *bd, unsigned mark) int64_t bd_seek_mark(BLURAY *bd, unsigned mark)
{ {
uint32_t clip_pkt, out_pkt; uint32_t clip_pkt, out_pkt;
...@@ -1806,12 +1826,8 @@ static void _process_hdmv_vm_event(BLURAY *bd, HDMV_EVENT *hev) ...@@ -1806,12 +1826,8 @@ static void _process_hdmv_vm_event(BLURAY *bd, HDMV_EVENT *hev)
break; break;
case HDMV_EVENT_PLAY_PI: case HDMV_EVENT_PLAY_PI:
#if 0
_queue_event(bd, (BD_EVENT){BD_EVENT_SEEK, 0}); _queue_event(bd, (BD_EVENT){BD_EVENT_SEEK, 0});
bd_seek_pi(bd, hev->param); bd_seek_playitem(bd, hev->param);
#else
DEBUG(DBG_BLURAY|DBG_CRIT, "HDMV_EVENT_PLAY_PI: not implemented\n");
#endif
break; break;
case HDMV_EVENT_PLAY_PM: case HDMV_EVENT_PLAY_PM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment