From 6cbf81bdb92afba645d44eb20a58f42a7690912e Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 30 Apr 2014 12:05:50 +0200 Subject: [PATCH] Fixed stdin/stdout support messages for MistIn applications. --- src/input/input_dtsc.cpp | 7 ++++--- src/input/input_flv.cpp | 7 ++++--- src/input/input_ogg.cpp | 9 +++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/input/input_dtsc.cpp b/src/input/input_dtsc.cpp index 0f6d9e47..6ce289be 100644 --- a/src/input/input_dtsc.cpp +++ b/src/input/input_dtsc.cpp @@ -23,11 +23,12 @@ namespace Mist { bool inputDTSC::setup() { if (config->getString("input") == "-") { - std::cerr << "Input from stream not yet supported" << std::endl; + std::cerr << "Input from stdin not yet supported" << std::endl; return false; } - if (config->getString("output") != "-") { - std::cerr << "Output to non-stdout not yet supported" << std::endl; + if (config->getString("output") == "-") { + std::cerr << "Output to stdout not yet supported" << std::endl; + return false; } //open File diff --git a/src/input/input_flv.cpp b/src/input/input_flv.cpp index 5e5ef403..15bcef7e 100644 --- a/src/input/input_flv.cpp +++ b/src/input/input_flv.cpp @@ -23,11 +23,12 @@ namespace Mist { bool inputFLV::setup() { if (config->getString("input") == "-") { - std::cerr << "Input from stream not yet supported" << std::endl; + std::cerr << "Input from stdin not yet supported" << std::endl; return false; } - if (config->getString("output") != "-") { - std::cerr << "Output to non-stdout not yet supported" << std::endl; + if (config->getString("output") == "-") { + std::cerr << "Output to stdout not yet supported" << std::endl; + return false; } //open File diff --git a/src/input/input_ogg.cpp b/src/input/input_ogg.cpp index df17b033..8e7b79c4 100644 --- a/src/input/input_ogg.cpp +++ b/src/input/input_ogg.cpp @@ -21,13 +21,14 @@ namespace Mist { bool inputOGG::setup() { if (config->getString("input") == "-") { - std::cerr << "Input from stream not yet supported" << std::endl; + std::cerr << "Input from stdin not yet supported" << std::endl; return false; } - if (config->getString("output") != "-") { - std::cerr << "Output to non-stdout not yet supported" << std::endl; + if (config->getString("output") == "-") { + std::cerr << "Output to stdout not yet supported" << std::endl; + return false; } - + //open File inFile = fopen(config->getString("input").c_str(), "r"); if (!inFile) {