From 2bdff4c0ece85666019ce90f22a5bb0e6e29e677 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 26 Jun 2014 21:05:05 +0200 Subject: [PATCH] muxer passthrough: EPIPE is the end-of-streaming notification --- src/muxer/muxer_pass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/muxer/muxer_pass.c b/src/muxer/muxer_pass.c index 916e2459..6a9fe168 100644 --- a/src/muxer/muxer_pass.c +++ b/src/muxer/muxer_pass.c @@ -401,6 +401,8 @@ pass_muxer_write(muxer_t *m, const void *data, size_t size) pm->m_errors++; } else if(tvh_write(pm->pm_fd, data, size)) { pm->pm_error = errno; + if (errno == EPIPE) /* this is an end-of-streaming notification */ + return; tvhlog(LOG_ERR, "pass", "%s: Write failed -- %s", pm->pm_filename, strerror(errno)); m->m_errors++;