diff --git a/examples/osgmovie/osgmovie.cpp b/examples/osgmovie/osgmovie.cpp index 774e8241c..ace599ba6 100644 --- a/examples/osgmovie/osgmovie.cpp +++ b/examples/osgmovie/osgmovie.cpp @@ -347,6 +347,7 @@ int main(int argc, char** argv) arguments.getApplicationUsage()->addCommandLineOption("--shader","Use shaders to post process the video."); arguments.getApplicationUsage()->addCommandLineOption("--interactive","Use camera manipulator to allow movement around movie."); arguments.getApplicationUsage()->addCommandLineOption("--flip","Flip the movie so top becomes bottom."); + arguments.getApplicationUsage()->addCommandLineOption("--devices","Print the Video input capability via QuickTime and exit."); bool useTextureRectangle = true; bool useShader = false; @@ -360,6 +361,14 @@ int main(int argc, char** argv) return 1; } + // if user requests devices video capability. + if (arguments.read("-devices") || arguments.read("--devices")) + { + // Force load QuickTime plugin, probe video capability, exit + osgDB::readImageFile("devices.live"); + return 1; + } + while (arguments.read("--texture2D")) useTextureRectangle=false; while (arguments.read("--shader")) useShader=true;