diff options
author | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-01 06:52:14 +0000 |
---|---|---|
committer | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-01 06:52:14 +0000 |
commit | a6d6f182167dbb2fe16ef12faf36a6668eaaa9af (patch) | |
tree | fadd2e327c066d4536525d00f2030143a06e00e2 | |
parent | 5bfedc0a2d9331a6b2205aaebed4739e882771ea (diff) | |
download | mpv-a6d6f182167dbb2fe16ef12faf36a6668eaaa9af.tar.bz2 mpv-a6d6f182167dbb2fe16ef12faf36a6668eaaa9af.tar.xz |
Clean up some fields in stheader.h structs
sh_video_t: void *video_out: only assigned to, never read. Remove.
sh_video_t: void *vfilter: change type to struct vf_instance_s *
sh_audio_t: void *afilter: change type to struct af_stream_s *
The latter two never hold different types so there's no reason to use
void *. Maybe they were originally defined that way because the
option of using pointers to incomplete struct types was missed (the
typedefs vf_instance_t and af_stream_t would require extra headers)?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24919 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/stheader.h | 5 | ||||
-rw-r--r-- | mencoder.c | 1 | ||||
-rw-r--r-- | mplayer.c | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/libmpdemux/stheader.h b/libmpdemux/stheader.h index b869ba3146..5d1473be6a 100644 --- a/libmpdemux/stheader.h +++ b/libmpdemux/stheader.h @@ -35,7 +35,7 @@ typedef struct { int a_out_buffer_len; int a_out_buffer_size; // void* audio_out; // the audio_out handle, used for this audio stream - void* afilter; // the audio filter stream + struct af_stream_s *afilter; // the audio filter stream struct ad_functions_s* ad_driver; #ifdef DYNAMIC_PLUGINS void *dec_handle; @@ -78,8 +78,7 @@ typedef struct { int disp_w,disp_h; // display size (filled by fileformat parser) // output driver/filters: (set by libmpcodecs core) unsigned int outfmtidx; - void* video_out; // the video_out handle, used for this video stream - void* vfilter; // the video filter chain, used for this video stream + struct vf_instance_s *vfilter; // the video filter chain, used for this video stream int vf_inited; #ifdef DYNAMIC_PLUGINS void *dec_handle; diff --git a/mencoder.c b/mencoder.c index b1c50d7421..9ef7835c8f 100644 --- a/mencoder.c +++ b/mencoder.c @@ -778,7 +778,6 @@ mux_v->codec=out_video_codec; mux_v->bih=NULL; } sh_video->codec=NULL; -sh_video->video_out=NULL; sh_video->vfilter=NULL; // fixme! switch(mux_v->codec){ @@ -1900,7 +1900,6 @@ int reinit_video_chain(void) { mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_ErrorInitializingVODevice); goto err_out; } - sh_video->video_out=mpctx->video_out; inited_flags|=INITED_VO; } |