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 6f630fa commit a0616bcCopy full SHA for a0616bc
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;
@@ -373,10 +375,13 @@ _find_frame_data (ArvGvStreamThreadData *thread_data,
373
375
374
376
buffer = arv_stream_pop_input_buffer (thread_data->stream);
377
if (buffer == NULL) {
- thread_data->n_underruns++;
-
378
+ if (thread_data->underrun_frame_id != frame_id) {
379
+ thread_data->n_underruns++;
380
+ thread_data->underrun_frame_id = frame_id;
381
+ }
382
return NULL;
383
}
384
+ thread_data->underrun_frame_id = 0;
385
386
n_packets = _compute_n_expected_packets (packet,
387
buffer->priv->allocated_size,
0 commit comments