From 1c5a71ecbacdc7bbae608d6d34ca836929d09d4b Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 20 Oct 2013 17:20:53 -0700 Subject: automatic reuse of source index files --- rotord/src/libavwrapper.cpp | 29 +++++++++++++++++++++++++++-- rotord/src/libavwrapper.h | 2 ++ 2 files changed, 29 insertions(+), 2 deletions(-) (limited to 'rotord/src') diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp index d9207bb..26523fc 100644 --- a/rotord/src/libavwrapper.cpp +++ b/rotord/src/libavwrapper.cpp @@ -32,7 +32,32 @@ void libav::maybeInitFFMpegLib() bool libav::video_decoder::open(const std::string& filename){ Mutex::ScopedLock lock(mutex); loaded=false; - FFMS_Index *index = FFMS_MakeIndex(filename.c_str(), 0, 0, NULL, NULL, FFMS_IEH_IGNORE, NULL, NULL, &err); + + //first check if an index object exists + Poco::StringTokenizer tokens(filename,"."); + string idxfile=""; + for (int i=0;i -- cgit v1.2.3