vcap/rtsp: suppress repeating message

Do not repeat message "Setting the stream size to %ux%u\n" for the
same size.
This commit is contained in:
Martin Pulec
2024-07-31 15:51:10 +02:00
parent b506f66d62
commit b4e55646d3

View File

@@ -463,7 +463,9 @@ vidcap_rtsp_grab(void *state, struct audio_frame **audio) {
pthread_mutex_unlock(&s->vrtsp_state.lock);
pthread_cond_signal(&s->vrtsp_state.worker_cv);
if (frame->tiles[0].width != 0) {
if (frame->tiles[0].width != 0 &&
s->vrtsp_state.desc.width != frame->tiles[0].width &&
s->vrtsp_state.desc.height != frame->tiles[0].height) {
MSG(VERBOSE, "Setting the stream size to %ux%u\n",
frame->tiles[0].width, frame->tiles[0].height);
s->vrtsp_state.desc.width = frame->tiles[0].width;