]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: don't print 'c' characters to stdout
authorJaroslav Kysela <perex@perex.cz>
Wed, 27 May 2015 11:07:19 +0000 (13:07 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 27 May 2015 11:07:19 +0000 (13:07 +0200)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index 937c715c5eb4dbafe8c0dfc78564a233f826a11c..60f7f196f6dd9260780274df7dcf9099ec9adb67 100644 (file)
@@ -382,7 +382,8 @@ linuxdvb_frontend_update_pids
   }
   pthread_mutex_unlock(&lfe->lfe_dvr_lock);
 
-  tvh_write(lfe->lfe_dvr_pipe.wr, "c", 1);
+  if (lfe->lfe_dvr_pipe.wr > 0)
+    tvh_write(lfe->lfe_dvr_pipe.wr, "c", 1);
 }
 
 static idnode_set_t *