Commit 87d8047e authored by hpi1's avatar hpi1

Added bd_select_playlist()

parent e37b428d
......@@ -604,6 +604,17 @@ static int _open_playlist(BLURAY *bd, const char *f_name)
return 0;
int bd_select_playlist(BLURAY *bd, uint32_t playlist)
char *f_name = str_printf("%05d.mpls", playlist);
int result;
result = _open_playlist(bd, f_name);
return result;
// Select a title for playback
// The title index is an index into the list
// established by bd_get_titles()
......@@ -95,6 +95,7 @@ int64_t bd_seek(BLURAY *bd, uint64_t pos); // Seek to pos in curren
int64_t bd_seek_time(BLURAY *bd, uint64_t tick); // Seek to a specific time in 90Khz ticks
int bd_read(BLURAY *bd, unsigned char *buf, int len); // Read from currently selected title file, decrypt if possible
int bd_select_playlist(BLURAY *bd, uint32_t playlist);
int bd_select_title(BLURAY *bd, uint32_t title); // Select the title from the list created by bd_get_titles()
int bd_select_angle(BLURAY *bd, int angle); // Set the angle to play
void bd_seamless_angle_change(BLURAY *bd, int angle); // Initiate seamless angle change
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