[vlc-commits] DXVA2: log the exact unknown GUID value

Steve Lhomme git at videolan.org
Wed Apr 8 18:18:27 CEST 2015


vlc/vlc-2.2 | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Apr  1 05:10:34 2015 +0000| [e59500ebc9c8a7dd97d1f9bbf141b166a720888e] | committer: Jean-Baptiste Kempf

DXVA2: log the exact unknown GUID value

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 4e702c61ece5da4d179241deb1e20c8e1324dc2d)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/avcodec/dxva2.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 8b6dc5f..3720319 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -50,6 +50,7 @@
 #include "avcodec.h"
 #include "va.h"
 #include "../../video_chroma/copy.h"
+#include "../../demux/asf/libasf_guid.h"
 
 static int Open(vlc_va_t *, AVCodecContext *, const es_format_t *);
 static void Close(vlc_va_t *);
@@ -771,8 +772,7 @@ static int DxFindVideoServiceConversion(vlc_va_t *va, GUID *input, D3DFORMAT *ou
         if (mode) {
             msg_Dbg(va, "- '%s' is supported by hardware", mode->name);
         } else {
-            msg_Warn(va, "- Unknown GUID = %08X-%04x-%04x-XXXX",
-                     (unsigned)g->Data1, g->Data2, g->Data3);
+            msg_Warn(va, "- Unknown GUID = " GUID_FMT, GUID_PRINT( *g ) );
         }
     }
 



More information about the vlc-commits mailing list