[vlc-devel] commit: Fixed vout display module wrapper with locked/unlocked picture pool . (Laurent Aimar )
git version control
git at videolan.org
Tue Jan 5 21:07:23 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan 3 21:25:39 2010 +0100| [25d33b2940234b26c197638fc356770e67a8eb17] | committer: Laurent Aimar
Fixed vout display module wrapper with locked/unlocked picture pool.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25d33b2940234b26c197638fc356770e67a8eb17
---
modules/video_output/wrapper.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/video_output/wrapper.c b/modules/video_output/wrapper.c
index 908e821..799ebae 100644
--- a/modules/video_output/wrapper.c
+++ b/modules/video_output/wrapper.c
@@ -512,8 +512,15 @@ static void Display(vout_thread_t *vout, picture_t *picture)
vout_display_Display(vd, direct);
- if (!sys->use_dr)
+ if (sys->use_dr) {
+ for (int i = 0; i < picture->i_planes; i++) {
+ picture->p[i].p_pixels = direct->p[i].p_pixels;
+ picture->p[i].i_pitch = direct->p[i].i_pitch;
+ picture->p[i].i_lines = direct->p[i].i_lines;
+ }
+ } else {
picture->p_sys->direct = NULL;
+ }
}
static void VoutGetDisplayCfg(vout_thread_t *vout, vout_display_cfg_t *cfg, const char *title)
More information about the vlc-devel
mailing list