Revision: 4448 http://pd-gem.svn.sourceforge.net/pd-gem/?rev=4448&view=rev Author: zmoelnig Date: 2011-08-11 08:30:53 +0000 (Thu, 11 Aug 2011)
Log Message: ----------- added argument support for [pix_video]: use as device name Modified Paths: -------------- trunk/Gem/src/Pixes/pix_video.cpp trunk/Gem/src/Pixes/pix_video.h Modified: trunk/Gem/src/Pixes/pix_video.cpp =================================================================== --- trunk/Gem/src/Pixes/pix_video.cpp 2011-08-11 08:30:27 UTC (rev 4447) +++ trunk/Gem/src/Pixes/pix_video.cpp 2011-08-11 08:30:53 UTC (rev 4448) @@ -22,10 +22,11 @@ #include "Gem/State.h" #include "Gem/Exception.h" #include "plugins/PluginFactory.h" -#include "RTE/MessageCallbacks.h" -CPPEXTERN_NEW(pix_video); +#include "RTE/Symbol.h" +CPPEXTERN_NEW_WITH_GIMME(pix_video); + ///////////////////////////////////////////////////////// // // pix_video @@ -34,7 +35,7 @@ // Constructor // ///////////////////////////////////////////////////////// -pix_video :: pix_video() : +pix_video :: pix_video(int argc, t_atom*argv) : m_videoHandle(NULL), m_driver(-1), m_running(UNKNOWN), m_infoOut(NULL) { gem::PluginFactory<gem::plugins::video>::loadPlugins("video"); @@ -57,6 +58,13 @@ } else { error("no video backends found!"); } + + std::string dev=gem::RTE::Symbol(argc, argv); + + if(!dev.empty()) + deviceMess(dev); + + } ///////////////////////////////////////////////////////// Modified: trunk/Gem/src/Pixes/pix_video.h =================================================================== --- trunk/Gem/src/Pixes/pix_video.h 2011-08-11 08:30:27 UTC (rev 4447) +++ trunk/Gem/src/Pixes/pix_video.h 2011-08-11 08:30:53 UTC (rev 4448) @@ -48,7 +48,7 @@ ////////// // Constructor - pix_video(); + pix_video(int, t_atom*); protected: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ pd-gem-CVS mailing list pd-gem-CVS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pd-gem-cvs