[vlc-commits] input: show module name on clock conversion errors

Francois Cartegnie git at videolan.org
Wed Nov 9 19:41:08 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov  9 19:28:12 2016 +0100| [4e28d43bb81deb2175fb948d5affdaf2c09aa25b] | committer: Francois Cartegnie

input: show module name on clock conversion errors

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e28d43bb81deb2175fb948d5affdaf2c09aa25b
---

 src/input/decoder.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index b6aa80a..27549e3 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -732,11 +732,12 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
         if( i_ts_bound != INT64_MAX )
             i_ts_bound += i_es_delay;
         if( input_clock_ConvertTS( VLC_OBJECT(p_dec), p_clock, &i_rate, pi_ts0, pi_ts1, i_ts_bound ) ) {
+            const char *psz_name = module_get_name( p_dec->p_module, false );
             if( pi_ts1 != NULL )
                 msg_Err(p_dec, "Could not convert timestamps %"PRId64
-                        ", %"PRId64"", *pi_ts0, *pi_ts1);
+                        ", %"PRId64" for %s", *pi_ts0, *pi_ts1, psz_name );
             else
-                msg_Err(p_dec, "Could not convert timestamp %"PRId64, *pi_ts0);
+                msg_Err(p_dec, "Could not convert timestamp %"PRId64" for %s", *pi_ts0, psz_name );
             *pi_ts0 = VLC_TS_INVALID;
         }
     }



More information about the vlc-commits mailing list