[vlc-devel] commit: Allocated up to VOUT_MAX_PICTURES when direct mode can be available (xv). (Laurent Aimar )
git version control
git at videolan.org
Sun Apr 19 14:23:46 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Apr 19 14:20:04 2009 +0200| [2bf4c6916ab2a4e26b5db8b2ffdb5652db65c1dc] | committer: Laurent Aimar
Allocated up to VOUT_MAX_PICTURES when direct mode can be available (xv).
It will avoid some useless copy in video_output.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2bf4c6916ab2a4e26b5db8b2ffdb5652db65c1dc
---
modules/video_output/x11/xcommon.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/x11/xcommon.h b/modules/video_output/x11/xcommon.h
index ab81b51..736cfdf 100644
--- a/modules/video_output/x11/xcommon.h
+++ b/modules/video_output/x11/xcommon.h
@@ -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
More information about the vlc-devel
mailing list