17 ofile.open(filename(), std::ios::out | std::ios::trunc);
19 if (!ofile.is_open() || !ofile) {
23 log->info(1, SFUNCTION_NAME,
"GstreamerTextFactory: opened file " + filename());
31 if (ofile.is_open()) ofile.close();
32 if (ofile.is_open()) {
36 log->info(1, SFUNCTION_NAME,
"GstreamerTextFactory: closed file " + filename());
std::shared_ptr< GLogger > log
virtual bool closeConnectionImpl()
Plugin-specific close implementation hook.
virtual bool openConnection()
Open the output medium used by this streamer.
ASCII streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
constexpr int ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
constexpr int ERR_CANTCLOSEOUTPUT
Output medium could not be closed cleanly.