Commit 767cf119 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: remove callback in VLCVoutView correctly. Fixes #5428

parent de2ff972
...@@ -153,6 +153,13 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -153,6 +153,13 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
- (void)closeVout - (void)closeVout
{ {
vout_thread_t * p_vout = getVout();
if( !p_vout )
{
var_DelCallback( p_vout, "video-device", DeviceCallback, NULL );
vlc_object_release( p_vout );
}
/* Make sure we don't see a white flash */ /* Make sure we don't see a white flash */
[o_view removeFromSuperview]; [o_view removeFromSuperview];
[o_view release]; [o_view release];
......
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