From 317222764debbaf1ac96d256df24c00af85c1b6a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 May 2014 21:06:23 +0100 Subject: Add ImageProxy class. --- src/lib/ffmpeg_decoder.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/ffmpeg_decoder.cc') diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index c93012608..7a5bf8ba8 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -42,6 +42,7 @@ extern "C" { #include "filter_graph.h" #include "audio_buffers.h" #include "ffmpeg_content.h" +#include "image_proxy.h" #include "i18n.h" @@ -502,13 +503,13 @@ FFmpegDecoder::decode_video_packet () ); black->make_black (); - video (image, false, _video_position); + video (shared_ptr (new RawImageProxy (image)), false, _video_position); delta -= one_frame; } if (delta > -one_frame) { /* This PTS is within a frame of being right; emit this (otherwise it will be dropped) */ - video (image, false, _video_position); + video (shared_ptr (new RawImageProxy (image)), false, _video_position); } } else { -- cgit v1.2.3