opengl: Replace vlc_gl_Destroy in macosx, glwin32, caopengllayer vouts
commit1117ff946a67dfaae27a21b54e2dc679bb500e23
authorMarvin Scholz <epirat07@gmail.com>
Wed, 28 Dec 2016 16:45:24 +0000 (28 17:45 +0100)
committerThomas Guillem <thomas@gllm.fr>
Thu, 29 Dec 2016 12:48:22 +0000 (29 13:48 +0100)
treea77bbdc6a524310c835e823845d591d1e5244adc
parent81bb144b0316d5e62757e54477481ecfce9e1b6b
opengl: Replace vlc_gl_Destroy in macosx, glwin32, caopengllayer vouts

Some vouts like macosx and glwin32 do not use vlc_gl_Create to create a
vlc_gl_t, and set no module but vlc_gl_Destroy expects that a module is
set and will therefore fail for these vouts.

This commit replaces vlc_gl_Destroy in these vouts with direct calls to
vlc_object_release.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/video_output/caopengllayer.m
modules/video_output/macosx.m
modules/video_output/win32/glwin32.c