10bool GstreamerRootFactory::openConnection() {
11 log->
debug(NORMAL,
"GstreamerRootFactory::openConnection -> opening file " + filename());
13 rootfile = std::make_unique<TFile>(filename().c_str(),
"RECREATE");
15 if (rootfile->IsZombie()) {
17 ERR_CANTOPENOUTPUT,
"GstreamerRootFactory: could not create file " + filename() +
" (file is a zombie)");
19 else {
log->
info(0,
"GstreamerRootFactory: opened file " + filename()); }
24bool GstreamerRootFactory::closeConnectionImpl() {
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 (file/device not accessible).