[vlc-devel] [PATCH 3/7] Support for rotated MP4 Movies (bug #2882)
Matthias Keiser
matthias at tristan-inc.com
Mon Feb 17 01:31:46 CET 2014
I did not test any of these except macosx.m.
I simply checked for this:
sys->vgl = vout_display_opengl_New(…
---
modules/video_output/caopengllayer.m | 7 +++++++
modules/video_output/gl.c | 7 +++++++
modules/video_output/ios2.m | 7 +++++++
modules/video_output/macosx.m | 7 +++++++
modules/video_output/msw/glwin32.c | 8 ++++++++
modules/video_output/xcb/glx.c | 7 +++++++
6 files changed, 43 insertions(+)
diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index 4ff6e7e..cd2dfb6 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -325,6 +325,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
+ case VOUT_DISPLAY_CAN_HANDLE_ORIENTATION:
+ {
+ bool *result = va_arg (ap, bool *);
+ *result = true;
+ return VLC_SUCCESS;
+ }
+
case VOUT_DISPLAY_RESET_PICTURES:
assert (0);
default:
diff --git a/modules/video_output/gl.c b/modules/video_output/gl.c
index 9034612..148494f 100644
--- a/modules/video_output/gl.c
+++ b/modules/video_output/gl.c
@@ -292,6 +292,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
+ case VOUT_DISPLAY_CAN_HANDLE_ORIENTATION:
+ {
+ bool *result = va_arg (ap, bool *);
+ *result = true;
+ return VLC_SUCCESS;
+ }
+
default:
msg_Err (vd, "Unknown request %d", query);
}
diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 3656bfe..e4e16ad 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -294,6 +294,13 @@ static int Control(vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
+ case VOUT_DISPLAY_CAN_HANDLE_ORIENTATION:
+ {
+ bool *result = va_arg (ap, bool *);
+ *result = true;
+ return VLC_SUCCESS;
+ }
+
case VOUT_DISPLAY_RESET_PICTURES:
assert (0);
default:
diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index a14fff6..4a30cd5 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -417,6 +417,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
+ case VOUT_DISPLAY_CAN_HANDLE_ORIENTATION:
+ {
+ bool *result = va_arg (ap, bool *);
+ *result = true;
+ return VLC_SUCCESS;
+ }
+
case VOUT_DISPLAY_RESET_PICTURES:
assert (0);
default:
diff --git a/modules/video_output/msw/glwin32.c b/modules/video_output/msw/glwin32.c
index 489581b..69eb7fa 100644
--- a/modules/video_output/msw/glwin32.c
+++ b/modules/video_output/msw/glwin32.c
@@ -304,6 +304,14 @@ static int Control(vout_display_t *vd, int query, va_list args)
CommonDisplay(vd);
return VLC_SUCCESS;
}
+
+ case VOUT_DISPLAY_CAN_HANDLE_ORIENTATION:
+ {
+ bool *result = va_arg (ap, bool *);
+ *result = true;
+ return VLC_SUCCESS;
+ }
+
default:
return CommonControl(vd, query, args);
}
diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index e5661a4..c7e4f7a 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -498,6 +498,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
+ case VOUT_DISPLAY_CAN_HANDLE_ORIENTATION:
+ {
+ bool *result = va_arg (ap, bool *);
+ *result = true;
+ return VLC_SUCCESS;
+ }
+
case VOUT_DISPLAY_RESET_PICTURES:
assert (0);
default:
--
1.8.3.4 (Apple Git-47)
More information about the vlc-devel
mailing list