Commit f109d459 authored by IOhannes m zmoelnig's avatar IOhannes m zmoelnig
Browse files

"reset" message for [pix_video]

parent 1a77d11e
......@@ -766,6 +766,14 @@ void pix_video :: qualityMess(int q) {
}
void pix_video :: resetMess(void) {
if(m_videoHandle)
m_videoHandle->reset();
else
WITH_VIDEOHANDLES_DO(reset());
}
/////////////////////////////////////////////////////////
// transferMess
//
......@@ -835,6 +843,8 @@ void pix_video :: obj_setupCallback(t_class *classPtr)
gensym("color"), A_GIMME, A_NULL);
CPPEXTERN_MSG1(classPtr, "quality", qualityMess, int);
CPPEXTERN_MSG0(classPtr, "reset", resetMess);
}
void pix_video :: dimenMessCallback(void *data, t_symbol *s, int ac, t_atom *av)
{
......
......@@ -79,7 +79,7 @@ class GEM_EXTERN pix_video : public GemBase
virtual void deviceMess(int dev);
virtual void closeMess(void);
virtual void resetMess(void);
// Set the driver architecture; (probably this makes only sense under linux right now: you can choose between video4linux(0) and video1394(1))
virtual void driverMess(int dev);
......
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