We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0269e5 commit e7238beCopy full SHA for e7238be
1 file changed
src/arvgvstream.c
@@ -162,6 +162,8 @@ struct _ArvGvStreamThreadData {
162
163
gboolean use_packet_socket;
164
165
+ guint64 underrun_frame_id;
166
+
167
/* Statistics */
168
169
guint64 n_completed_buffers;
@@ -374,10 +376,13 @@ _find_frame_data (ArvGvStreamThreadData *thread_data,
374
376
375
377
buffer = arv_stream_pop_input_buffer (thread_data->stream);
378
if (buffer == NULL) {
- thread_data->n_underruns++;
-
379
+ if (thread_data->underrun_frame_id != frame_id) {
380
+ thread_data->n_underruns++;
381
+ thread_data->underrun_frame_id = frame_id;
382
+ }
383
return NULL;
384
}
385
+ thread_data->underrun_frame_id = 0;
386
387
n_packets = _compute_n_expected_packets (packet,
388
buffer->priv->allocated_size,
0 commit comments