diff options
author | wm4 <wm4@nowhere> | 2015-09-02 23:31:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-02 23:33:13 +0200 |
commit | 61b902f5a7e8dc273b6d680c19af65f362d2233f (patch) | |
tree | be9267000b9f893d51c966e6328e25886878c249 /video/decode/lavc.h | |
parent | 11f44a10f977c076411a64c818fcd52de9b9c118 (diff) | |
download | mpv-61b902f5a7e8dc273b6d680c19af65f362d2233f.tar.bz2 mpv-61b902f5a7e8dc273b6d680c19af65f362d2233f.tar.xz |
vd_lavc: better hwdec log output
Often, we don't know whether hardware decoding will work until we've
tried. (This used to be different, but API changes and improvements in
libavcodec led to this situation.) We will often output that we're going
to use hardware decoding, and then print a fallback warning.
Instead, print the status once we have decoded a frame.
Some of the old messages are turned into verbose messages, which should
be helpful for debugging. Also add some new ones.
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r-- | video/decode/lavc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h index 590697d056..90b2d6a886 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -20,6 +20,7 @@ typedef struct lavc_ctx { enum AVDiscard skip_frame; const char *software_fallback_decoder; bool hwdec_failed; + bool hwdec_notified; // From VO struct mp_hwdec_info *hwdec_info; |