X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=cl_video.h;h=8439e92cc65ba80ceac47048f3c2439258779814;hb=e88a73794afa1f0fe65fc70d318f4e288cabc0d1;hp=eff1cc5c2f7ea1b6aae26facce748b2b0ef50bd8;hpb=228847c7c27c1a24ebb23bdac46ea5cb7b395475;p=xonotic%2Fdarkplaces.git diff --git a/cl_video.h b/cl_video.h index eff1cc5c..8439e92c 100644 --- a/cl_video.h +++ b/cl_video.h @@ -2,8 +2,7 @@ #ifndef CL_VIDEO_H #define CL_VIDEO_H -//#define MAXCLVIDEOS 64 + 1 // 1 video is reserved for the cinematic mode -#define MAXCLVIDEOS 1 +#define MAXCLVIDEOS 64 + 1 // 1 video is reserved for the cinematic mode #define CLVIDEOPREFIX "_video/" #define CLTHRESHOLD 2.0 @@ -37,14 +36,17 @@ typedef struct clvideo_s cachepic_t cpif; // if a video is suspended, it is automatically paused (else we'd still have to process the frames) - double lasttime; // used to determine whether the video's resources should be freed or not - qboolean suspended; // when lasttime - realtime > THRESHOLD, all but the stream is freed + + // used to determine whether the video's resources should be freed or not + double lasttime; + // when lasttime - realtime > THRESHOLD, all but the stream is freed + qboolean suspended; char filename[MAX_QPATH]; } clvideo_t; -clvideo_t* CL_OpenVideo( char *filename, char *name, int owner ); -clvideo_t* CL_GetVideo( char *name ); +clvideo_t* CL_OpenVideo( const char *filename, const char *name, int owner ); +clvideo_t* CL_GetVideo( const char *name ); void CL_SetVideoState( clvideo_t *video, clvideostate_t state ); void CL_RestartVideo( clvideo_t *video );