[libbluray-devel] fire BD_EVENT_SEEK in _seek_internal()
Ian Curtis
git at videolan.org
Sat Feb 2 22:56:58 CET 2013
libbluray | branch: master | Ian Curtis <i.curtis at gmail.com> | Sat Feb 2 23:30:15 2013 +0200| [dd4826fe03e8e250022a78069ba76e615c801902] | committer: hpi1
fire BD_EVENT_SEEK in _seek_internal()
Fixes missing SEEK events when BD-J seeks the stream.
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=dd4826fe03e8e250022a78069ba76e615c801902
---
src/libbluray/bluray.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 6cb5600..2665296 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1357,6 +1357,8 @@ static void _seek_internal(BLURAY *bd,
{
if (_seek_stream(bd, &bd->st0, clip, clip_pkt) >= 0) {
+ _queue_event(bd, BD_EVENT_SEEK, 0);
+
/* update title position */
bd->s_pos = (uint64_t)title_pkt * 192;
@@ -2680,12 +2682,10 @@ static void _process_hdmv_vm_event(BLURAY *bd, HDMV_EVENT *hev)
break;
case HDMV_EVENT_PLAY_PI:
- _queue_event(bd, BD_EVENT_SEEK, 0);
bd_seek_playitem(bd, hev->param);
break;
case HDMV_EVENT_PLAY_PM:
- _queue_event(bd, BD_EVENT_SEEK, 0);
bd_seek_mark(bd, hev->param);
break;
More information about the libbluray-devel
mailing list