Skip to content

Commit ad3b4d1

Browse files
jimmy-rubin-workJimmy Rubin
authored andcommitted
vdo_larod: Allow requested resolutions smaller than min
Co-authored-by: Jimmy Rubin <jimmyrn@axis.com>
1 parent 7f3de40 commit ad3b4d1

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

vdo-larod/app/channel_util.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,13 @@ bool channel_util_choose_stream_resolution(unsigned int channel_id,
106106
// Check the requested width and height towards min resolution
107107
if (chosen_req->width < set->resolutions[0].width ||
108108
chosen_req->height < set->resolutions[0].height) {
109-
panic("%s: Requested width or height smaller than min resolution %ux%u",
110-
__func__,
111-
set->resolutions[0].width,
112-
set->resolutions[0].height);
109+
// It is likely that the requested resolution will work but print so if
110+
// vdo_stream_new fails this could be the reason.
111+
syslog(LOG_INFO,
112+
"%s: Requested width or height smaller than min resolution %ux%u",
113+
__func__,
114+
set->resolutions[0].width,
115+
set->resolutions[0].height);
113116
}
114117
const char* format_str = "rgb interleaved";
115118
switch (*chosen_format) {

0 commit comments

Comments
 (0)