1
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 04:36:24 +01:00

audio_out / video_out structs should be treated as const

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25793 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-01-19 11:33:36 +00:00
parent ce3b1606ab
commit fda4dce8a0
4 changed files with 6 additions and 6 deletions

View File

@ -2,8 +2,8 @@
#define ACCESS_MPCONTEXT_H
struct MPContext;
void *mpctx_get_video_out(struct MPContext *mpctx);
void *mpctx_get_audio_out(struct MPContext *mpctx);
const void *mpctx_get_video_out(struct MPContext *mpctx);
const void *mpctx_get_audio_out(struct MPContext *mpctx);
void *mpctx_get_demuxer(struct MPContext *mpctx);
void *mpctx_get_playtree_iter(struct MPContext *mpctx);
void *mpctx_get_mixer(struct MPContext *mpctx);

View File

@ -506,7 +506,7 @@ static void remove_vf( char * str )
int guiGetEvent( int type,char * arg )
{
ao_functions_t *audio_out = NULL;
const ao_functions_t *audio_out = NULL;
const vo_functions_t *video_out = NULL;
mixer_t *mixer = NULL;

View File

@ -61,8 +61,8 @@ static RECT old_rect;
static DWORD style;
static HANDLE hThread;
static unsigned threadId;
ao_functions_t *audio_out = NULL;
vo_functions_t *video_out = NULL;
const ao_functions_t *audio_out = NULL;
const vo_functions_t *video_out = NULL;
mixer_t *mixer = NULL;
/* test for playlist files, no need to specify -playlist on the commandline.

View File

@ -375,7 +375,7 @@ static unsigned int inited_flags=0;
#define mp_basename2(s) (strrchr(s,'/')==NULL?(char*)s:(strrchr(s,'/')+1))
void *mpctx_get_video_out(MPContext *mpctx)
const void *mpctx_get_video_out(MPContext *mpctx)
{
return mpctx->video_out;
}