[vlc-commits] vmem: reorient video
Rémi Denis-Courmont
git at videolan.org
Fri Mar 14 17:39:32 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Mar 14 18:38:25 2014 +0200| [eeecf856de8be64741661c301544adb675696f57] | committer: Rémi Denis-Courmont
vmem: reorient video
So far, the callbacks have no way to access and use the orientation, so
better fix it.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eeecf856de8be64741661c301544adb675696f57
---
modules/video_output/vmem.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/vmem.c b/modules/video_output/vmem.c
index 2575f75..b4026ff 100644
--- a/modules/video_output/vmem.c
+++ b/modules/video_output/vmem.c
@@ -139,7 +139,8 @@ static int Open(vlc_object_t *object)
sys->pool = NULL;
/* Define the video format */
- video_format_t fmt = vd->fmt;
+ video_format_t fmt;
+ video_format_ApplyRotation(&fmt, &vd->fmt);
if (setup != NULL) {
char chroma[5];
More information about the vlc-commits
mailing list