mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 19:18:31 +00:00
glimagesink: Always display with requested stereo display mode
Even if the input is monoscopic, the app might want to display it in a different layout, to do side-by-side for VR for example, so if the app changes the output-multiview-mode always use that.
This commit is contained in:
parent
577c14495c
commit
46260654a4
1 changed files with 1 additions and 9 deletions
|
@ -1384,7 +1384,6 @@ static gboolean
|
||||||
update_output_format (GstGLImageSink * glimage_sink)
|
update_output_format (GstGLImageSink * glimage_sink)
|
||||||
{
|
{
|
||||||
GstVideoInfo *out_info = &glimage_sink->out_info;
|
GstVideoInfo *out_info = &glimage_sink->out_info;
|
||||||
gboolean input_is_mono = FALSE;
|
|
||||||
GstVideoMultiviewMode mv_mode;
|
GstVideoMultiviewMode mv_mode;
|
||||||
GstGLWindow *window = NULL;
|
GstGLWindow *window = NULL;
|
||||||
GstGLTextureTarget previous_target;
|
GstGLTextureTarget previous_target;
|
||||||
|
@ -1398,14 +1397,7 @@ update_output_format (GstGLImageSink * glimage_sink)
|
||||||
|
|
||||||
mv_mode = GST_VIDEO_INFO_MULTIVIEW_MODE (&glimage_sink->in_info);
|
mv_mode = GST_VIDEO_INFO_MULTIVIEW_MODE (&glimage_sink->in_info);
|
||||||
|
|
||||||
if (mv_mode == GST_VIDEO_MULTIVIEW_MODE_NONE ||
|
if (glimage_sink->mview_output_mode != mv_mode) {
|
||||||
mv_mode == GST_VIDEO_MULTIVIEW_MODE_MONO ||
|
|
||||||
mv_mode == GST_VIDEO_MULTIVIEW_MODE_LEFT ||
|
|
||||||
mv_mode == GST_VIDEO_MULTIVIEW_MODE_RIGHT)
|
|
||||||
input_is_mono = TRUE;
|
|
||||||
|
|
||||||
if (input_is_mono == FALSE &&
|
|
||||||
glimage_sink->mview_output_mode != GST_VIDEO_MULTIVIEW_MODE_NONE) {
|
|
||||||
/* Input is multiview, and output wants a conversion - configure 3d converter now,
|
/* Input is multiview, and output wants a conversion - configure 3d converter now,
|
||||||
* otherwise defer it until either the caps or the 3D output mode changes */
|
* otherwise defer it until either the caps or the 3D output mode changes */
|
||||||
gst_video_multiview_video_info_change_mode (out_info,
|
gst_video_multiview_video_info_change_mode (out_info,
|
||||||
|
|
Loading…
Reference in a new issue