[libbluray-devel] Added new events to hdmv_test

hpi1 git at videolan.org
Thu Jun 2 13:54:26 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Jun  2 14:53:58 2011 +0300| [25843ac8d537297e6107320bc9dc3e602f880049] | committer: hpi1

Added new events to hdmv_test

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

 src/examples/hdmv_test.c |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/examples/hdmv_test.c b/src/examples/hdmv_test.c
index c0037e7..fb542ba 100644
--- a/src/examples/hdmv_test.c
+++ b/src/examples/hdmv_test.c
@@ -58,6 +58,18 @@ static void _print_event(BD_EVENT *ev)
             printf("EVENT_STILL:\t%d\n", ev->param);
             break;
 
+        case BD_EVENT_SEEK:
+            printf("EVENT_SEEK:\t%d\n", ev->param);
+            break;
+
+        case BD_EVENT_STILL_TIME:
+            if (ev->param) {
+                printf("EVENT_STILL_TIME:\t%d\n", ev->param);
+            } else {
+                printf("EVENT_STILL_TIME:\tinfinite\n");
+            }
+            break;
+
         /* stream selection */
 
         case BD_EVENT_AUDIO_STREAM:
@@ -89,10 +101,9 @@ static void _print_event(BD_EVENT *ev)
             printf("EVENT_SECONDARY_VIDEO_SIZE:\t%s\n", ev->param==0 ? "PIP" : "fullscreen");
             break;
 
-
         default:
-          printf("UNKNOWN EVENT %d:\t%d\n", ev->event, ev->param);
-          break;
+            printf("UNKNOWN EVENT %d:\t%d\n", ev->event, ev->param);
+            break;
       }
 
       fflush(stdout);



More information about the libbluray-devel mailing list