Commit fb37b650 authored by Marvin Scholz's avatar Marvin Scholz

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

Since d9e1ff01 this is no longer passed,
vd->source is used instead.
parent 7186b290
......@@ -376,13 +376,10 @@ static int Control (vout_display_t *vd, int query, va_list ap)
NSSize windowMinSize = [o_window minSize];
const vout_display_cfg_t *cfg;
const video_format_t *source;
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 *);
......@@ -395,7 +392,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
cfg_tmp.display.height = bounds.size.height;
vout_display_place_t place;
vout_display_PlacePicture (&place, source, &cfg_tmp, false);
vout_display_PlacePicture (&place, &vd->source, &cfg_tmp, false);
@synchronized (sys->glView) {
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