summaryrefslogtreecommitdiffstats
path: root/stream/cache2.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-03-16 18:57:23 +0100
committerwm4 <wm4@mplayer2.org>2012-03-16 19:14:44 +0100
commit6de8120822c2dd9c50ef23b4977421651396f1ae (patch)
tree11a977608cfc9f50cffbce4a879dd8e9b33b029c /stream/cache2.c
parent0eb21226cbfdd200f2aea5d3a9db2cdbff4773a5 (diff)
parenta8168102668337f3c11619bea7e744fc245adff1 (diff)
downloadmpv-6de8120822c2dd9c50ef23b4977421651396f1ae.tar.bz2
mpv-6de8120822c2dd9c50ef23b4977421651396f1ae.tar.xz
Merge remote-tracking branch 'origin/master' into my_master
Conflicts: command.c mp_core.h mplayer.c screenshot.c
Diffstat (limited to 'stream/cache2.c')
-rw-r--r--stream/cache2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 6e8f398c37..4aed786cb6 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -367,6 +367,7 @@ void cache_uninit(stream_t *s) {
s->cache_data = NULL;
}
+#if FORKED_CACHE
static void exit_sighandler(int x){
// close stream
exit(0);
@@ -374,6 +375,7 @@ static void exit_sighandler(int x){
static void dummy_sighandler(int x) {
}
+#endif
/**
* Main loop of the cache process or thread.