]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
muxer passthrough: EPIPE is the end-of-streaming notification
authorJaroslav Kysela <perex@perex.cz>
Thu, 26 Jun 2014 19:05:05 +0000 (21:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 26 Jun 2014 19:05:05 +0000 (21:05 +0200)
src/muxer/muxer_pass.c

index 916e2459b2ca551eb9ba8c3721cd18e54a922ac6..6a9fe1686e40ac6d8c394970a588d6d05b549bb0 100644 (file)
@@ -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++;