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()) {
log->error(
ERR_CANTCLOSEOUTPUT, SFUNCTION_NAME,
" could not close file " + filename()); }
34 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.
#define ERR_CANTCLOSEOUTPUT
Output medium could not be closed cleanly.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.