comparison libmpdemux/stream.c @ 9915:eabe876ab5e2

Fix cache uninit
author albeu
date Sat, 12 Apr 2003 13:53:33 +0000
parents 233802490b0e
children d42177a0da2a
comparison
equal deleted inserted replaced
9914:3c856c0fc45e 9915:eabe876ab5e2
389 389
390 void free_stream(stream_t *s){ 390 void free_stream(stream_t *s){
391 // printf("\n*** free_stream() called ***\n"); 391 // printf("\n*** free_stream() called ***\n");
392 #ifdef USE_STREAM_CACHE 392 #ifdef USE_STREAM_CACHE
393 if(s->cache_pid) { 393 if(s->cache_pid) {
394 // kill(s->cache_pid,SIGTERM); 394 cache_uninit(s);
395 kill(s->cache_pid,SIGKILL);
396 waitpid(s->cache_pid,NULL,0);
397 shmem_free(s->cache_data);
398 } 395 }
399 #endif 396 #endif
400 switch(s->type) { 397 switch(s->type) {
401 #ifdef LIBSMBCLIENT 398 #ifdef LIBSMBCLIENT
402 case STREAMTYPE_SMB: 399 case STREAMTYPE_SMB: