Skip to content

Commit

Permalink
samples: skip findFile() in encoding mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Jun 6, 2019
1 parent aab9ef4 commit a51d46c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion samples/cpp/videocapture_gstreamer_pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ int main(int argc, char *argv[])
cout << "Unsupported mode: " << mode << endl;
return -1;
}
file_name = samples::findFile(file_name);
if (mode == "decode")
{
file_name = samples::findFile(file_name);
}
cout << "Mode: " << mode << ", Backend: " << backend << ", File: " << file_name << ", Codec: " << codec << endl;

TickMeter total;
Expand Down

0 comments on commit a51d46c

Please sign in to comment.