Commit bbf11e43 authored by hpi1's avatar hpi1

Moved TITLE_FIRST_PLAY and TITLE_TOP_MENU defines to bluray.h

(those can be used with BD_EVENT_TITLE and bd_play_title())
parent 250f6068
......@@ -1731,13 +1731,10 @@ static int _play_hdmv(BLURAY *bd, unsigned id_ref)
return 1;
}
#define TITLE_FIRST_PLAY 0xffff /* 10.4.3.2 (E) */
#define TITLE_TOP_MENU 0x0000 /* 5.2.3.3 */
int bd_play_title(BLURAY *bd, unsigned title)
{
/* first play object ? */
if (title == TITLE_FIRST_PLAY) {
if (title == BLURAY_TITLE_FIRST_PLAY) {
INDX_PLAY_ITEM *p = &bd->index->first_play;
bd_psr_write(bd->regs, PSR_TITLE_NUMBER, 0xffff); /* 5.2.3.3 */
......@@ -1765,7 +1762,7 @@ int bd_play_title(BLURAY *bd, unsigned title)
}
/* top menu ? */
if (title == TITLE_TOP_MENU) {
if (title == BLURAY_TITLE_TOP_MENU) {
INDX_PLAY_ITEM *p = &bd->index->top_menu;
bd_psr_write(bd->regs, PSR_TITLE_NUMBER, 0); /* 5.2.3.3 */
......@@ -1817,7 +1814,7 @@ int bd_play(BLURAY *bd)
bd_psr_register_cb(bd->regs, _process_psr_event, bd);
_queue_initial_psr_events(bd);
return bd_play_title(bd, TITLE_FIRST_PLAY);
return bd_play_title(bd, BLURAY_TITLE_FIRST_PLAY);
}
int bd_menu_call(BLURAY *bd, int64_t pts)
......@@ -1831,7 +1828,7 @@ int bd_menu_call(BLURAY *bd, int64_t pts)
return 0;
}
return bd_play_title(bd, TITLE_TOP_MENU);
return bd_play_title(bd, BLURAY_TITLE_TOP_MENU);
}
static void _run_gc(BLURAY *bd, gc_ctrl_e msg, uint32_t param)
......
......@@ -489,6 +489,8 @@ typedef struct {
uint32_t param;
} BD_EVENT;
#define BLURAY_TITLE_FIRST_PLAY 0xffff
#define BLURAY_TITLE_TOP_MENU 0
/**
*
* Get event from libbluray event queue.
......
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