Mercurial > mplayer.hg
comparison mplayer.c @ 24891:fefb019faa90
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)?
author | uau |
---|---|
date | Thu, 01 Nov 2007 06:52:14 +0000 |
parents | d6d9d3388a21 |
children | 80180dc13565 |
comparison
equal
deleted
inserted
replaced
24890:a54a25221b79 | 24891:fefb019faa90 |
---|---|
1898 //if((mpctx->video_out->preinit(vo_subdevice))!=0){ | 1898 //if((mpctx->video_out->preinit(vo_subdevice))!=0){ |
1899 if(!(mpctx->video_out=init_best_video_out(video_driver_list))){ | 1899 if(!(mpctx->video_out=init_best_video_out(video_driver_list))){ |
1900 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_ErrorInitializingVODevice); | 1900 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_ErrorInitializingVODevice); |
1901 goto err_out; | 1901 goto err_out; |
1902 } | 1902 } |
1903 sh_video->video_out=mpctx->video_out; | |
1904 inited_flags|=INITED_VO; | 1903 inited_flags|=INITED_VO; |
1905 } | 1904 } |
1906 | 1905 |
1907 if(stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_ASPECT_RATIO, &ar) != STREAM_UNSUPPORTED) | 1906 if(stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_ASPECT_RATIO, &ar) != STREAM_UNSUPPORTED) |
1908 mpctx->sh_video->stream_aspect = ar; | 1907 mpctx->sh_video->stream_aspect = ar; |