Commit e2dfc356b4215876aa34042c1fc8d10ffb06ebae

Authored by Josh Klontz
1 parent f47f1bc0

fixed variable set up not used warning

Showing 1 changed file with 2 additions and 3 deletions
openbr/plugins/stream.cpp
... ... @@ -393,7 +393,6 @@ public:
393 393 bool open(Template & input)
394 394 {
395 395 close();
396   - bool open_res = false;
397 396 final_frame = -1;
398 397 last_issued = -2;
399 398 last_received = -3;
... ... @@ -401,12 +400,12 @@ public:
401 400 // Input has no matrices? Its probably a video that hasn't been loaded yet
402 401 if (input.empty()) {
403 402 actualSource = new VideoDataSource(0);
404   - open_res = actualSource->open(input);
  403 + actualSource->open(input);
405 404 }
406 405 else {
407 406 // create frame dealer
408 407 actualSource = new TemplateDataSource(0);
409   - open_res = actualSource->open(input);
  408 + actualSource->open(input);
410 409 }
411 410 if (!isOpen()) {
412 411 delete actualSource;
... ...