diff options
Diffstat (limited to 'rotord/src')
| -rw-r--r-- | rotord/src/graph.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h index 70a7e3a..9266fe3 100644 --- a/rotord/src/graph.h +++ b/rotord/src/graph.h @@ -97,10 +97,10 @@ namespace Rotor { class Thumbnailer{ public: bool make(const string &inputfilename,int w,int h,const string &outputfilename) { - Poco::StringTokenizer t1(inputfilename,"."); - if (t1.count()>1) { - if (t1[t1.count()-1]=="svg"){ - cerr<<"found an svg"<<endl; + //Poco::StringTokenizer t1(inputfilename,"."); + //if (t1.count()>1) { + // if (t1[t1.count()-1]=="svg"){ + // cerr<<"found an svg"<<endl; RsvgHandle * rsvg=rsvg_handle_new_from_file(inputfilename.c_str(),nullptr); if (rsvg) { RsvgDimensionData dims; @@ -127,12 +127,12 @@ namespace Rotor { g_object_unref(rsvg); return true; } - else { - cerr<<"Rotor: SVG failed to load "<<inputfilename<<endl; - return false; - } - } - } + // else { + // cerr<<"Rotor: SVG failed to load "<<inputfilename<<endl; + // return false; + // } + // } + //} //if not svg feed to FFMS2 if (player.open(inputfilename)){ if (player.fetch_frame(w,h,player.get_number_frames()/4)) { |
