Skip to content

Commit 7657746

Browse files
committed
use uint32 for stream event
1 parent 5552873 commit 7657746

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
.github/github_deploy_key.enc
44
.idea
55
build
6-
media
76
cmake-build-debug/
87
cmake-build-release/
98
doc/

samples/kvssink_gstreamer_sample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ int main(int argc, char *argv[]) {
922922
} else if(stream_status == STATUS_KVS_GSTREAMER_SAMPLE_INTERRUPTED){
923923
LOG_ERROR("File upload interrupted. Terminating.");
924924
continue_uploading = false;
925-
} else { // non fatal case. retry upload
925+
}else { // non fatal case. retry upload
926926
LOG_ERROR("stream error occurred: " << stream_status << ". Terminating.");
927927
do_retry = true;
928928
}

src/KinesisVideoStream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ bool KinesisVideoStream::putFragmentMetadata(const std::string &name, const std:
185185
return true;
186186
}
187187

188-
bool KinesisVideoStream::putEventMetadata(STREAM_EVENT_TYPE event, PStreamEventMetadata pStreamEventMetadata){
188+
bool KinesisVideoStream::putEventMetadata(uint32_t event, PStreamEventMetadata pStreamEventMetadata){
189189
STATUS status = ::putKinesisVideoEventMetadata(stream_handle_, event, pStreamEventMetadata);
190190
if (STATUS_FAILED(status)) {
191191
LOG_ERROR("Failed to put event: " << status << " for " << this->stream_name_);

src/KinesisVideoStream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ class KinesisVideoStream {
8787
* Inserts a KVS event(s) accompanied by optional metadata (key/value string pairs) into the stream.
8888
* Multiple events can be submitted at once by using bitwise OR of event types, or multiple calls of this
8989
* function with different unique events.
90-
* @param 1 STREAM_EVENT_TYPE - the type of event(s), a value from STREAM_EVENT_TYPE enum. If
90+
* @param 1 uint32_t - the type of event(s), a value from STREAM_EVENT_TYPE enum. If
9191
* if you want to submit multiple events in one call it is suggested to use bit-wise
9292
* OR combination from STREAM_EVENT_TYPE enum.
9393
* @param 2 PStreamEventMetadata - pointer to struct with optional metadata. This metadata will be applied
9494
* to all events included in THIS function call.
9595
*/
96-
bool putEventMetadata(STREAM_EVENT_TYPE event, PStreamEventMetadata pStreamEventMetadata);
96+
bool putEventMetadata(uint32_t event, PStreamEventMetadata pStreamEventMetadata);
9797

9898
/**
9999
* Initializes the track identified by trackId with a hex-encoded codec private data

0 commit comments

Comments
 (0)