From: Jaroslav Kysela Date: Thu, 26 Jun 2014 19:05:05 +0000 (+0200) Subject: muxer passthrough: EPIPE is the end-of-streaming notification X-Git-Tag: v4.1~1848 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bdff4c0ece85666019ce90f22a5bb0e6e29e677;p=thirdparty%2Ftvheadend.git muxer passthrough: EPIPE is the end-of-streaming notification --- diff --git a/src/muxer/muxer_pass.c b/src/muxer/muxer_pass.c index 916e2459b..6a9fe1686 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++;