diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-10-31 14:07:53 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-10-31 14:07:53 +0000 |
| commit | e9f7eeacb01eab0c33882a93d4c075cb4d6e0171 (patch) | |
| tree | 7e0b97b6576c6c65fd70a68c945f6c781dd1abd6 /rotord/src | |
| parent | 3fc55826cad90c650787e31c1726d5fc49b83892 (diff) | |
audio thumbnails
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)) { |
