From 47a4f30fc852f4d49df6df7b4974c7c4751107f3 Mon Sep 17 00:00:00 2001 From: Comment Date: Fri, 20 Sep 2013 15:30:57 +0100 Subject: making video top and tail --- rotord/src/graph.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rotord/src/graph.h') diff --git a/rotord/src/graph.h b/rotord/src/graph.h index cc531cd..60e61db 100644 --- a/rotord/src/graph.h +++ b/rotord/src/graph.h @@ -16,7 +16,7 @@ Graph is an instance of a rotor renderer namespace Rotor { class Graph{ public: - Graph(){duration=20.0f;loaded = false;outW=640;outH=360;}; + Graph(){duration=20.0f;loaded = false;outW=640;outH=360;audio_thumb=new Audio_thumbnailer();}; Graph(const string& _uid,const string& _desc){ init(_uid,_desc); audio_loaded=false; @@ -29,7 +29,7 @@ namespace Rotor { framerate=25.0f; cancelled=false; }; - ~Graph(){ clear(); }; + ~Graph(){ clear(); delete audio_thumb;}; void clear(){ for (auto n: nodes) { delete n.second; @@ -72,6 +72,8 @@ namespace Rotor { bool cancelled; float progress; int bitRate; + + Audio_thumbnailer *audio_thumb; private: int outW,outH; -- cgit v1.2.3