提交 33f85005 编写于 作者: Z Zhang Rui

ios: set delegate to nil when shutdown

上级 b7620464
......@@ -467,6 +467,7 @@ inline static int getPlayerOption(IJKFFOptionCategory category)
ijkmp_stop(_mediaPlayer);
ijkmp_shutdown(_mediaPlayer);
[self performSelectorOnMainThread:@selector(shutdownClose:) withObject:self waitUntilDone:YES];
}
......@@ -475,6 +476,11 @@ inline static int getPlayerOption(IJKFFOptionCategory category)
if (!_mediaPlayer)
return;
_segmentOpenDelegate = nil;
_tcpOpenDelegate = nil;
_httpOpenDelegate = nil;
_liveOpenDelegate = nil;
ijkmp_dec_ref_p(&_mediaPlayer);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册