[libbluray-devel] Close current playlist when HDMV changes title
hpi1
git at videolan.org
Sat Jul 2 09:51:17 CEST 2011
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Jun 30 15:21:16 2011 +0300| [6b5175b408c181f63ff021afc39a225c14010290] | committer: hpi1
Close current playlist when HDMV changes title
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6b5175b408c181f63ff021afc39a225c14010290
---
src/libbluray/bluray.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index f54e561..abfeada 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1757,11 +1757,11 @@ static void _process_psr_event(void *handle, BD_PSR_EVENT *ev)
/* current playback position */
- case PSR_ANGLE_NUMBER: _queue_event(bd, (BD_EVENT){BD_EVENT_ANGLE, ev->new_val}); break;
- case PSR_TITLE_NUMBER: _queue_event(bd, (BD_EVENT){BD_EVENT_TITLE, ev->new_val}); break;
- case PSR_PLAYLIST: _queue_event(bd, (BD_EVENT){BD_EVENT_PLAYLIST, ev->new_val}); break;
- case PSR_PLAYITEM: _queue_event(bd, (BD_EVENT){BD_EVENT_PLAYITEM, ev->new_val}); break;
- case PSR_CHAPTER: _queue_event(bd, (BD_EVENT){BD_EVENT_CHAPTER, ev->new_val}); break;
+ case PSR_ANGLE_NUMBER: _queue_event(bd, (BD_EVENT){BD_EVENT_ANGLE, ev->new_val}); break;
+ case PSR_TITLE_NUMBER: _queue_event(bd, (BD_EVENT){BD_EVENT_TITLE, ev->new_val}); break;
+ case PSR_PLAYLIST: _queue_event(bd, (BD_EVENT){BD_EVENT_PLAYLIST, ev->new_val}); break;
+ case PSR_PLAYITEM: _queue_event(bd, (BD_EVENT){BD_EVENT_PLAYITEM, ev->new_val}); break;
+ case PSR_CHAPTER: _queue_event(bd, (BD_EVENT){BD_EVENT_CHAPTER, ev->new_val}); break;
/* stream selection */
@@ -2025,6 +2025,7 @@ static void _process_hdmv_vm_event(BLURAY *bd, HDMV_EVENT *hev)
switch (hev->event) {
case HDMV_EVENT_TITLE:
+ _close_playlist(bd);
_play_title(bd, hev->param);
break;
More information about the libbluray-devel
mailing list