muxer passthrough: EPIPE is the end-of-streaming notification

This commit is contained in:
Jaroslav Kysela 2014-06-26 21:05:05 +02:00
parent 0da81e0b81
commit 2bdff4c0ec

View 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++;