core: Set mpctx->chapters to NULL at uninit
[mplayer.git] / libmpcodecs / vd_null.c
blob34392962b1401d8e33ba070dbd31d64b56516923
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "config.h"
5 #include "mp_msg.h"
7 #include "vd_internal.h"
9 static const vd_info_t info =
11 "Null video decoder",
12 "null",
13 "A'rpi",
14 "A'rpi",
15 "no decoding"
18 LIBVD_EXTERN(null)
20 // to set/get/query special features/parameters
21 static int control(sh_video_t *sh,int cmd,void* arg,...){
22 return CONTROL_UNKNOWN;
25 // init driver
26 static int init(sh_video_t *sh){
27 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24)) return 0;
28 return 1;
31 // uninit driver
32 static void uninit(sh_video_t *sh){
35 // decode a frame
36 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
37 return NULL;