playto works
authorhackbard <hackbard>
Thu, 28 Aug 2003 23:53:07 +0000 (23:53 +0000)
committerhackbard <hackbard>
Thu, 28 Aug 2003 23:53:07 +0000 (23:53 +0000)
dfbapi.c
dfbapi.h
ivac.c

index cabc5a7..f1444e1 100644 (file)
--- a/dfbapi.c
+++ b/dfbapi.c
@@ -8,11 +8,6 @@
 #include <directfb.h>
 #include "ivac.h"
 
-// do
-// int flip_blit_callback()
-// int dfb_play_video()
-// int dfb_stop_video()
-
 int flip_blit_callback(void *ctx) {
        struct ivac *ivac=ctx;
 
index e1f4a20..8f6f41b 100644 (file)
--- a/dfbapi.h
+++ b/dfbapi.h
@@ -7,4 +7,5 @@
 /* function prototypes */
 int dfb_init(int arg_c,char **arg_v,struct ivac *ivac);
 int dfb_tini(struct ivac *ivac);
-
+int dfb_play_video(struct ivac *ivac);
+int dfb_stop_video(struct ivac *ivac);
diff --git a/ivac.c b/ivac.c
index a9f270e..05ea6f6 100644 (file)
--- a/ivac.c
+++ b/ivac.c
@@ -60,6 +60,12 @@ int main(int argc, char **argv) {
                return -1;
        }
 
+       if(dfb_play_video(&ivac)<0) {
+               puts("dfb play video failed");
+               return -1;
+       };
+
+       puts("pess button ...");
        getchar();
 
        dfb_tini(&ivac);