samples: skip findFile() in encoding mode

pull/14750/head
Alexander Alekhin 6 years ago
parent aab9ef4290
commit a51d46cbf9
  1. 5
      samples/cpp/videocapture_gstreamer_pipeline.cpp

@ -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;

Loading…
Cancel
Save