[vlc-commits] qsv: log the status when SyncOperation fails

Steve Lhomme git at videolan.org
Wed Apr 4 18:28:12 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Sep 15 16:42:38 2017 +0200| [875a15c96dd6736521b1db8ff3684b1422675dbb] | committer: Steve Lhomme

qsv: log the status when SyncOperation fails

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

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

diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index fb4050cab2..3f944b0463 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -703,8 +703,8 @@ static block_t *qsv_synchronize_block(encoder_t *enc, async_task_t *task)
         sts = MFXVideoCORE_SyncOperation(sys->session, *task->syncp, QSV_SYNCPOINT_WAIT);
     } while (sts == MFX_WRN_IN_EXECUTION);
     if (sts != MFX_ERR_NONE) {
-        msg_Err(enc, "SyncOperation failed, outputting garbage data. "
-                "Updating your drivers and/or changing the encoding settings might resolve this");
+        msg_Err(enc, "SyncOperation failed (%d), outputting garbage data. "
+                "Updating your drivers and/or changing the encoding settings might resolve this", sts);
         return NULL;
     }
     block_t *block = task->block;



More information about the vlc-commits mailing list