Skip to content

Commit

Permalink
vdisp/deck: accept shortopt for profile
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Jun 7, 2024
1 parent f9d619b commit 1a71edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_display/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,8 @@ static bool settings_init(struct state_decklink *s, const char *fmt,
const char *val = strchr(ptr, '=') + 1;
if (IS_KEY_PREFIX(ptr, "device")) {
cardId = strchr(ptr, '=') + 1;
} else if (IS_KEY_PREFIX(ptr, "profile")) {
s->profile_req.parse(strchr(ptr, '=') + 1);
} else if (strcasecmp(ptr, "3D") == 0) {
s->stereo = true;
} else if (strcasecmp(ptr, "timecode") == 0) {
Expand All @@ -1217,8 +1219,6 @@ static bool settings_init(struct state_decklink *s, const char *fmt,
s->device_options[bmdDeckLinkConfigSDIOutputLinkConfiguration].set_int(bmdLinkConfigurationDualLink);
} else if (strcasecmp(ptr, "quad-link") == 0) {
s->device_options[bmdDeckLinkConfigSDIOutputLinkConfiguration].set_int(bmdLinkConfigurationQuadLink);
} else if (strstr(ptr, "profile=") == ptr) {
s->profile_req.parse(strchr(ptr, '=') + 1);
} else if (strcasecmp(ptr, "full-duplex") == 0) {
s->profile_req.set_int(bmdProfileOneSubDeviceFullDuplex);
} else if (strcasecmp(ptr, "half-duplex") == 0) {
Expand Down

0 comments on commit 1a71edf

Please sign in to comment.