[vlc-commits] hwdummy: add some useful debug

Rémi Denis-Courmont git at videolan.org
Tue Jul 9 20:42:14 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul  9 21:21:59 2013 +0300| [064631b9deb3d0958b308e96428d1347c6df433c] | committer: Rémi Denis-Courmont

hwdummy: add some useful debug

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

 modules/codec/avcodec/hwdummy.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/hwdummy.c b/modules/codec/avcodec/hwdummy.c
index c488296..b54cf08 100644
--- a/modules/codec/avcodec/hwdummy.c
+++ b/modules/codec/avcodec/hwdummy.c
@@ -115,12 +115,19 @@ static int Setup(vlc_va_t *va, void **ctxp, vlc_fourcc_t *chromap,
 
 static int Open(vlc_va_t *va, int codec, const es_format_t *fmt)
 {
-    (void) codec; (void) fmt;
+    union
+    {
+        char str[4];
+        vlc_fourcc_t fourcc;
+    } u = { .fourcc = fmt->i_codec };
 
     vlc_va_sys_t *sys = calloc(1, sizeof (*sys));
     if (unlikely(sys == NULL))
        return VLC_ENOMEM;
 
+    msg_Dbg(va, "codec %d (%4.4s) profile %d level %d", codec, u.str,
+            fmt->i_profile, fmt->i_level);
+
     sys->context.render = Render;
 
     va->sys = sys;



More information about the vlc-commits mailing list