13 ensureFileInitializedForType(
"stream");
16 is_building_frame =
true;
17 current_frame.str(std::string());
18 current_frame.clear();
19 current_frame_has_header =
false;
20 current_frame_has_payload =
false;
27 if (!is_building_frame) {
33 if (!current_frame_has_header) {
34 if (current_frame.str().size() > 1) current_frame <<
", ";
35 current_frame <<
"\"header\": {}";
37 if (!current_frame_has_payload) {
38 if (current_frame.str().size() > 1) current_frame <<
", ";
39 current_frame <<
"\"payload\": []";
44 writeTopLevelEntry(current_frame.str());
46 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
Publish sequence encountered invalid state or invalid input data.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
JSON streamer plugin declarations.