From: pabs3 Date: Wed, 5 Nov 2008 09:38:18 +0000 (+0000) Subject: Make the ffmpeg importer declare that it is animated X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e8820e6bd4a49a4ef2e48b8cba3810c6b6b9eb43;p=synfig.git Make the ffmpeg importer declare that it is animated git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2152 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp index 6a4c3f6..83a086e 100644 --- a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp @@ -77,6 +77,11 @@ SYNFIG_IMPORTER_SET_CVS_ID(ffmpeg_mptr,"$Id$"); /* === M E T H O D S ======================================================= */ +bool ffmpeg_mptr::is_animated() +{ + return true; +} + bool ffmpeg_mptr::seek_to(int frame) { diff --git a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.h b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.h index 9e421c9..3e53931 100644 --- a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.h +++ b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.h @@ -67,6 +67,7 @@ public: ffmpeg_mptr(const char *filename); ~ffmpeg_mptr(); + virtual bool is_animated(); virtual bool get_frame(synfig::Surface &surface,synfig::Time time, synfig::ProgressCallback *callback); };