9 ensureFileInitializedForType(
"stream");
11 is_building_frame =
true;
12 current_frame.str(std::string());
13 current_frame.clear();
14 current_frame_has_header =
false;
15 current_frame_has_payload =
false;
22 if (!is_building_frame) {
28 if (!current_frame_has_header) {
29 if (current_frame.str().size() > 1) current_frame <<
", ";
30 current_frame <<
"\"header\": {}";
32 if (!current_frame_has_payload) {
33 if (current_frame.str().size() > 1) current_frame <<
", ";
34 current_frame <<
"\"payload\": []";
39 writeTopLevelEntry(current_frame.str());
41 is_building_frame =
false;
std::shared_ptr< GLogger > log
void error(int exit_code, Args &&... args) const
Shared constants and error codes for the gstreamer module.
#define ERR_PUBLISH_ERROR
Generic publish-time error (null pointers, invalid state).
#define ERR_CANTOPENOUTPUT
Output medium could not be opened (file/device not accessible).