Commit 0731d12c authored by Felix Paul Kühne's avatar Felix Paul Kühne

vout_macosx: fix prerequisite check in Control() (close #7937)

(cherry picked from commit ba534e5c56e1d4d3d3bb37fe23b32615e36171ff)
parent 42eaf8ca
...@@ -315,6 +315,12 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -315,6 +315,12 @@ static int Control (vout_display_t *vd, int query, va_list ap)
{ {
vout_display_sys_t *sys = vd->sys; vout_display_sys_t *sys = vd->sys;
if (!vd->sys)
return VLC_EGENERIC;
if (!sys->embed)
return VLC_EGENERIC;
switch (query) switch (query)
{ {
case VOUT_DISPLAY_CHANGE_FULLSCREEN: case VOUT_DISPLAY_CHANGE_FULLSCREEN:
...@@ -336,9 +342,6 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -336,9 +342,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
case VOUT_DISPLAY_CHANGE_SOURCE_CROP: case VOUT_DISPLAY_CHANGE_SOURCE_CROP:
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE: case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
{ {
if (!vd->sys)
return VLC_EGENERIC;
NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool * o_pool = [[NSAutoreleasePool alloc] init];
id o_window = [sys->glView window]; id o_window = [sys->glView window];
......
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