Advertisement
Guest User

Untitled

a guest
Jan 15th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.99 KB | None | 0 0
  1. index 2c7fd2be3..231435acb 100644
  2. --- a/src/modules/decklink/producer/decklink_producer.cpp
  3. +++ b/src/modules/decklink/producer/decklink_producer.cpp
  4. @@ -377,13 +377,13 @@ class decklink_producer : public IDeckLinkInputCallback
  5.          graph_->set_color("out-sync", diagnostics::color(0.0f, 0.2f, 1.0f));
  6.          graph_->set_text(print());
  7.          diagnostics::register_graph(graph_);
  8. -
  9. +        bool bstatus;
  10.          int status = 0;
  11.          int flags  = bmdVideoInputEnableFormatDetection;
  12.  
  13.          if (!format.empty()) {
  14.              flags = 0;
  15. -        } else if (FAILED(attributes_->GetFlag(BMDDeckLinkSupportsInputFormatDetection, &status)) || !status) {
  16. +        } else if (FAILED(attributes_->GetFlag(BMDDeckLinkSupportsInputFormatDetection, &bstatus)) || !bstatus) {
  17.              CASPAR_LOG(warning) << L"Decklink producer does not support auto detect input, you can explicitly choose a "
  18.                                     L"format by appending FORMAT";
  19.              flags = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement