]> hackdaworld.org Git - my-code/ivac.git/commitdiff
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 cabc5a7f1e711096776f452403f2970c65d5ce0e..f1444e1fc0e01ff60c2e3980a9d544b316a5c1b5 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 e1f4a2066b841ea46e95bba25a5718d700659226..8f6f41b3f6a64bfe5e525ad0a321acff93efe0a7 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 a9f270e518d5d6e58bb857356fff6be35d24113a..05ea6f6cf78756482323a8e963c595d5cf645550 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);