Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update outdated instruction #877

Merged
merged 1 commit into from
Mar 17, 2023
Merged

Update outdated instruction #877

merged 1 commit into from
Mar 17, 2023

Conversation

yuma-m
Copy link
Contributor

@yuma-m yuma-m commented Jul 7, 2022

Issue #, if available: N/A

Description of changes: We have to add -f to specify the file path for kvs_gstreamer_audio_video_sample.

if (!STRCMP(argv[i], "-f")) {
argFlags = 1;
}
else if (!STRCMP(argv[i], "-e")) {
argFlags = 2;
}
else {
continue;
}
i++; // found flag, next argument
switch(argFlags) {
case 1: //-f
{
file_path = string(argv[i]);
// file path should be at least 4 char (shortest example: a.ts)
if (file_path.size() < 4) {
LOG_ERROR("Invalid file path");
return 1;
}
FileInfo fileInfo;
fileInfo.path = file_path;
data.file_list.push_back(fileInfo);
data.uploading_file = true;
break;
}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@benwkim benwkim merged commit e99e7e9 into awslabs:master Mar 17, 2023
benwkim added a commit that referenced this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants