Commit 4ba0af80 authored by hpi1's avatar hpi1

Added BD_EVENT_END_OF_TITLE

parent 3c548f94
......@@ -1014,6 +1014,7 @@ int bd_read(BLURAY *bd, unsigned char *buf, int len)
if (st->clip == NULL) {
// We previously reached the last clip. Nothing
// else to read.
_queue_event(bd, (BD_EVENT){BD_EVENT_END_OF_TITLE, 0});
return 0;
}
if (clip_pkt >= st->clip->end_pkt) {
......@@ -1026,7 +1027,8 @@ int bd_read(BLURAY *bd, unsigned char *buf, int len)
st->clip = nav_next_clip(bd->title, st->clip);
if (st->clip == NULL) {
DEBUG(DBG_BLURAY|DBG_STREAM, "End of title (%p)\n", bd);
return out_len;
_queue_event(bd, (BD_EVENT){BD_EVENT_END_OF_TITLE, 0});
return 0;
}
if (!_open_m2ts(bd, st)) {
return -1;
......
......@@ -457,6 +457,7 @@ typedef enum {
BD_EVENT_PLAYLIST, /* current playlist (xxxxx.mpls) */
BD_EVENT_PLAYITEM, /* current play item */
BD_EVENT_CHAPTER, /* current chapter, 1...N */
BD_EVENT_END_OF_TITLE,
/* stream selection */
BD_EVENT_AUDIO_STREAM, /* 1..32, 0xff = none */
......
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