Commit 2bf4c691 authored by Laurent Aimar's avatar Laurent Aimar

Allocated up to VOUT_MAX_PICTURES when direct mode can be available (xv).

It will avoid some useless copy in video_output.
parent c825fbc4
......@@ -388,9 +388,9 @@ typedef struct mwmhints_t
* Chroma defines
*****************************************************************************/
#ifdef MODULE_NAME_IS_xvideo
# define MAX_DIRECTBUFFERS 10
# define MAX_DIRECTBUFFERS (VOUT_MAX_PICTURES)
#elif defined(MODULE_NAME_IS_xvmc)
# define MAX_DIRECTBUFFERS 12
# define MAX_DIRECTBUFFERS (VOUT_MAX_PICTURES+2)
#else
# define MAX_DIRECTBUFFERS 2
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment