diff options
author | Johns <johns98@gmx.net> | 2012-02-16 21:55:14 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-16 21:55:14 +0100 |
commit | 09cfab3856fa0104f0375b32a67e6b5fbea1c094 (patch) | |
tree | f5a1f36b31043a996cb82be64ccc0f7ee7045bd4 /video.c | |
parent | 30e903d90a43f45c001c3574bfedb6b0a2d0ef3e (diff) | |
download | vdr-plugin-softhddevice-09cfab3856fa0104f0375b32a67e6b5fbea1c094.tar.gz vdr-plugin-softhddevice-09cfab3856fa0104f0375b32a67e6b5fbea1c094.tar.bz2 |
Add posibility to disable repeat pict warning.
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -262,6 +262,8 @@ typedef struct _video_module_ // Variables //---------------------------------------------------------------------------- +char VideoIgnoreRepeatPict; ///< disable repeat pict warning + static Display *XlibDisplay; ///< Xlib X11 display static xcb_connection_t *Connection; ///< xcb connection static xcb_colormap_t VideoColormap; ///< video colormap @@ -8519,8 +8521,9 @@ enum PixelFormat Video_get_format(VideoHwDecoder * decoder, void VideoRenderFrame(VideoHwDecoder * decoder, const AVCodecContext * video_ctx, const AVFrame * frame) { - if (frame->repeat_pict) { - Warning(_("video: repeated pict found, but not handled\n")); + if (frame->repeat_pict && !VideoIgnoreRepeatPict) { + Warning(_("video: repeated pict %d found, but not handled\n"), + frame->repeat_pict); } if (VideoUsedModule) { VideoUsedModule->RenderFrame(decoder, video_ctx, frame); |