mirror of
https://github.com/mpv-player/mpv
synced 2025-03-04 13:18:12 +00:00
Call cache-uninit unconditionally, it should always be safe to call.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30403 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4e28b4bc9e
commit
73dea88956
@ -433,9 +433,7 @@ stream_t* new_stream(int fd,int type){
|
|||||||
void free_stream(stream_t *s){
|
void free_stream(stream_t *s){
|
||||||
// printf("\n*** free_stream() called ***\n");
|
// printf("\n*** free_stream() called ***\n");
|
||||||
#ifdef CONFIG_STREAM_CACHE
|
#ifdef CONFIG_STREAM_CACHE
|
||||||
if(s->cache_pid) {
|
|
||||||
cache_uninit(s);
|
cache_uninit(s);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
if(s->close) s->close(s);
|
if(s->close) s->close(s);
|
||||||
if(s->fd>0){
|
if(s->fd>0){
|
||||||
|
Loading…
Reference in New Issue
Block a user