11bool GstreamerRootFactory::openConnection() {
12 log->
debug(NORMAL,
"GstreamerRootFactory::openConnection -> opening file " + filename());
14 rootfile = std::make_unique<TFile>(filename().c_str(),
"RECREATE");
16 if (rootfile->IsZombie()) {
18 ERR_CANTOPENOUTPUT,
"GstreamerRootFactory: could not create file " + filename() +
" (file is a zombie)");
21 log->
info(1, SFUNCTION_NAME,
"GstreamerRootFactory: opened file " + filename());
26bool GstreamerRootFactory::closeConnectionImpl() {
35 log->
info(1, SFUNCTION_NAME,
"GstreamerRootFactory: closed file " + filename());
std::shared_ptr< GLogger > log
void debug(debug_type type, Args &&... args) const
void info(int level, Args &&... args) const
void error(int exit_code, Args &&... args) const
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
ROOT streamer plugin declarations.