diff libmpdemux/stream.c @ 9915:eabe876ab5e2

Fix cache uninit
author albeu
date Sat, 12 Apr 2003 13:53:33 +0000
parents 233802490b0e
children d42177a0da2a
line wrap: on
line diff
--- a/libmpdemux/stream.c	Sat Apr 12 13:52:21 2003 +0000
+++ b/libmpdemux/stream.c	Sat Apr 12 13:53:33 2003 +0000
@@ -391,10 +391,7 @@
 //  printf("\n*** free_stream() called ***\n");
 #ifdef USE_STREAM_CACHE
   if(s->cache_pid) {
-//    kill(s->cache_pid,SIGTERM);
-    kill(s->cache_pid,SIGKILL);
-    waitpid(s->cache_pid,NULL,0);
-    shmem_free(s->cache_data);
+    cache_uninit(s);
   }
 #endif
   switch(s->type) {