[libbluray-devel] commit: Added BD_EVENT_SEEK (hpi1 )

git at videolan.org git at videolan.org
Fri Dec 10 10:18:32 CET 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Dec 10 11:17:56 2010 +0200| [10340e262228671c366bb6d6d654e8a68a876f6c] | committer: hpi1 

Added BD_EVENT_SEEK

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=10340e262228671c366bb6d6d654e8a68a876f6c
---

 src/libbluray/bluray.c |    7 ++++++-
 src/libbluray/bluray.h |    5 ++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 8f66825..5247f24 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1785,11 +1785,16 @@ static void _process_hdmv_vm_event(BLURAY *bd, HDMV_EVENT *hev)
             break;
 
         case HDMV_EVENT_PLAY_PI:
-            //bd_seek_pi(bd, hev->param);
+#if 0
+            _queue_event(bd, (BD_EVENT){BD_EVENT_SEEK, 0});
+            bd_seek_pi(bd, hev->param);
+#else
             DEBUG(DBG_BLURAY|DBG_CRIT, "HDMV_EVENT_PLAY_PI: not implemented\n");
+#endif
             break;
 
         case HDMV_EVENT_PLAY_PM:
+            _queue_event(bd, (BD_EVENT){BD_EVENT_SEEK, 0});
             bd_seek_mark(bd, hev->param);
             break;
 
diff --git a/src/libbluray/bluray.h b/src/libbluray/bluray.h
index ee85aab..e202a6e 100644
--- a/src/libbluray/bluray.h
+++ b/src/libbluray/bluray.h
@@ -473,7 +473,10 @@ typedef enum {
     BD_EVENT_SECONDARY_VIDEO,        /* 0 - disable, 1 - enable */
     BD_EVENT_SECONDARY_VIDEO_SIZE,   /* 0 - PIP, 0xf - fullscreen */
 
-    /* still */
+    /* HDMV VM or JVM seeked the stream. Next read() will return data from new position. */
+    BD_EVENT_SEEK,
+
+    /* still playback (pause) */
     BD_EVENT_STILL,         /* 0 - off, 1 - on */
 
 } bd_event_e;



More information about the libbluray-devel mailing list