Commit b7f87e18 authored by zmoelnig's avatar zmoelnig
Browse files

getting rid of unused variables

LATER: check the uss of m_startRecord/m_stopRecord in recordQT

git-svn-id: https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/trunk/Gem@3608 49b2a0ca-c541-4d49-a7ef-d785e4371512
parent 3338c8d3
...@@ -92,13 +92,11 @@ struct pix_record :: PIMPL { ...@@ -92,13 +92,11 @@ struct pix_record :: PIMPL {
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
pix_record :: pix_record(int argc, t_atom *argv): pix_record :: pix_record(int argc, t_atom *argv):
m_banged(false), m_automatic(true), m_banged(false), m_automatic(true),
m_recordStart(0), m_recordStop(0),
m_outNumFrames(NULL), m_outInfo(NULL), m_outNumFrames(NULL), m_outInfo(NULL),
m_currentFrame(-1), m_currentFrame(-1),
m_minFrames(0), m_maxFrames(0), m_maxFrames(0),
m_recording(false), m_recording(false),
m_handle(NULL), m_handle(NULL),
m_driver(-1),
m_pimpl(new PIMPL()) m_pimpl(new PIMPL())
{ {
if (argc != 0){ if (argc != 0){
...@@ -116,7 +114,6 @@ pix_record :: pix_record(int argc, t_atom *argv): ...@@ -116,7 +114,6 @@ pix_record :: pix_record(int argc, t_atom *argv):
if(m_allhandles.size()>0) { if(m_allhandles.size()>0) {
m_driver=-1;
} else { } else {
error("no video backends found!"); error("no video backends found!");
} }
...@@ -264,12 +261,6 @@ void pix_record :: render(GemState *state) ...@@ -264,12 +261,6 @@ void pix_record :: render(GemState *state)
if(!m_handle)return; if(!m_handle)return;
if(m_banged||m_automatic){ if(m_banged||m_automatic){
#if 0
// leftover, fix later!
m_handle->m_recordStart=m_recordStart;
m_handle->m_recordStop=m_recordStop;
#endif
// if(m_maxFrames != 0 && m_currentFrame >= m_maxFrames) m_recordStop = 1; // if(m_maxFrames != 0 && m_currentFrame >= m_maxFrames) m_recordStop = 1;
bool success=m_handle->write(&state->image->image); bool success=m_handle->write(&state->image->image);
m_banged=false; m_banged=false;
......
...@@ -92,14 +92,6 @@ class GEM_EXTERN pix_record : public GemBase ...@@ -92,14 +92,6 @@ class GEM_EXTERN pix_record : public GemBase
////////// //////////
// Automatic writing // Automatic writing
bool m_automatic; bool m_automatic;
////////
// recording start
bool m_recordStart;
////////
// recording start
bool m_recordStop;
////////// //////////
// a outlet for information like #frames // a outlet for information like #frames
...@@ -111,7 +103,7 @@ class GEM_EXTERN pix_record : public GemBase ...@@ -111,7 +103,7 @@ class GEM_EXTERN pix_record : public GemBase
////////// //////////
// //
int m_minFrames, m_maxFrames; int m_maxFrames;
gem::Properties m_props; gem::Properties m_props;
virtual void enumPropertiesMess(void); virtual void enumPropertiesMess(void);
...@@ -125,8 +117,6 @@ class GEM_EXTERN pix_record : public GemBase ...@@ -125,8 +117,6 @@ class GEM_EXTERN pix_record : public GemBase
std::vector<gem::record*>m_handles; std::vector<gem::record*>m_handles;
std::vector<gem::record*>m_allhandles; std::vector<gem::record*>m_allhandles;
virtual bool addHandle(std::vector<std::string>available_ids, std::string id=std::string("")); virtual bool addHandle(std::vector<std::string>available_ids, std::string id=std::string(""));
int m_driver;
////////// //////////
// static member functions // static member functions
static void fileMessCallback(void *data, t_symbol *s, int argc, t_atom *argv); static void fileMessCallback(void *data, t_symbol *s, int argc, t_atom *argv);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment