]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
transcode: improve the transcode info log
authorJaroslav Kysela <perex@perex.cz>
Tue, 12 Sep 2017 09:04:16 +0000 (11:04 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 12 Sep 2017 09:04:16 +0000 (11:04 +0200)
src/transcoding/transcode/internals.h
src/transcoding/transcode/stream.c
src/transcoding/transcode/transcoder.c

index 256ed65587dfb3a4b3b8ac557255f102449d2aff..d616d6071c197a2fa6a3f647f262fd4e8695836c 100644 (file)
@@ -99,6 +99,7 @@ struct tvh_stream {
     int index;
     tvh_sct_t type;
     TVHContext *context;
+    int is_copy;
     SLIST_ENTRY(tvh_stream) link;
 };
 
index afed145f11ff83d21850c4454121ddf8d7bf57c8..50a952995a26bd24779f00f8b25c271b49b052d8 100644 (file)
@@ -156,6 +156,7 @@ tvh_stream_create(TVHTranscoder *transcoder, TVHCodecProfile *profile,
     self->id = self->index = ssc->ssc_index;
     self->type = ssc->ssc_type;
     if ((is_copy = tvh_stream_is_copy(profile, ssc, src_codecs)) > 0) {
+        self->is_copy = 1;
         if (ssc->ssc_gh) {
             pktbuf_ref_inc(ssc->ssc_gh);
         }
index 2f81100381bef0c0a1e18907d06854585a26a833..b033b9b2876039cca7cc91658905814a2af58956 100644 (file)
@@ -210,8 +210,11 @@ tvh_transcoder_start(TVHTranscoder *self, tvh_ss_t *ss_src)
             }
             *ssc = *ssc_src;
             if ((stream = tvh_stream_create(self, profile, ssc, codecs))) {
-                tvh_ssc_log(ssc_src, LOG_INFO, "==> Using profile %s", self,
-                            tvh_codec_profile_get_name(profile));
+                if (stream->is_copy)
+                  tvh_ssc_log(ssc_src, LOG_INFO, "==> Copy", self);
+                else
+                  tvh_ssc_log(ssc_src, LOG_INFO, "==> Using profile %s", self,
+                              tvh_codec_profile_get_name(profile));
                 SLIST_INSERT_HEAD(&self->streams, stream, link);
                 k++;
             } else {