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