Commit d2427557 authored by Steve Lhomme's avatar Steve Lhomme Committed by Marvin Scholz

vout:ios: Do not use passed video_format_t for CROP/ASPECT_RATIO changes

Signed-off-by: Marvin Scholz's avatarMarvin Scholz <epirat07@gmail.com>
parent df3f71dd
......@@ -293,14 +293,11 @@ static int Control(vout_display_t *vd, int query, va_list ap)
@autoreleasepool {
const vout_display_cfg_t *cfg;
const video_format_t *source;
if (query == VOUT_DISPLAY_CHANGE_SOURCE_ASPECT ||
query == VOUT_DISPLAY_CHANGE_SOURCE_CROP) {
source = (const video_format_t *)va_arg(ap, const video_format_t *);
cfg = vd->cfg;
} else {
source = &vd->source;
cfg = (const vout_display_cfg_t*)va_arg(ap, const vout_display_cfg_t *);
}
......@@ -319,7 +316,7 @@ static int Control(vout_display_t *vd, int query, va_list ap)
cfg_tmp.display.height = viewSize.height * scaleFactor;
vout_display_place_t place;
vout_display_PlacePicture(&place, source, &cfg_tmp, false);
vout_display_PlacePicture(&place, &vd->source, &cfg_tmp, false);
@synchronized (sys->glESView) {
sys->place = place;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment