Skip to content

Commit 3e04432

Browse files
committed
bmd_commmon small improvement
if property query fails, print its name (not only numeric ID)
1 parent a41b2c5 commit 3e04432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blackmagic_common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,8 +1608,8 @@ print_status_item(IDeckLinkStatus *deckLinkStatus, BMDDeckLinkStatusID prop,
16081608
if (!SUCCEEDED(rc)) {
16091609
if (FAILED(rc) && rc != E_NOTIMPL) {
16101610
log_msg(LOG_LEVEL_WARNING,
1611-
"%sObtain property 0x%08x value: %s\n",
1612-
log_prefix, (unsigned) prop,
1611+
"%sObtain property %s (0x%08x) value: %s\n",
1612+
log_prefix, s_prop->prop_name, (unsigned) prop,
16131613
bmd_hresult_to_string(rc).c_str());
16141614
}
16151615
return;

0 commit comments

Comments
 (0)