From: hackbard Date: Thu, 28 Aug 2003 23:53:07 +0000 (+0000) Subject: playto works X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=commitdiff_plain;h=bf60d9982d461e42bba3d922ace7eabb116dc4ff playto works --- diff --git a/dfbapi.c b/dfbapi.c index cabc5a7..f1444e1 100644 --- a/dfbapi.c +++ b/dfbapi.c @@ -8,11 +8,6 @@ #include #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; diff --git a/dfbapi.h b/dfbapi.h index e1f4a20..8f6f41b 100644 --- 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 --- 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);