mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
decklink*src: Post a warning message on the bus about dropped frames
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/378>
This commit is contained in:
parent
a45b0c8f1a
commit
675d8b347b
2 changed files with 16 additions and 6 deletions
|
@ -547,11 +547,16 @@ gst_decklink_audio_src_got_packet (GstElement * element,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skipped_packets == 0 && self->skipped_last > 0) {
|
if (skipped_packets == 0 && self->skipped_last > 0) {
|
||||||
GST_WARNING_OBJECT (self,
|
GST_ELEMENT_WARNING_WITH_DETAILS (self,
|
||||||
"Dropped %u old packets from %" GST_TIME_FORMAT " to %"
|
STREAM, FAILED,
|
||||||
|
("Dropped %u old packets from %" GST_TIME_FORMAT " to %"
|
||||||
GST_TIME_FORMAT, self->skipped_last,
|
GST_TIME_FORMAT, self->skipped_last,
|
||||||
GST_TIME_ARGS (self->skip_from_timestamp),
|
GST_TIME_ARGS (self->skip_from_timestamp),
|
||||||
GST_TIME_ARGS (self->skip_to_timestamp));
|
GST_TIME_ARGS (self->skip_to_timestamp)),
|
||||||
|
(NULL),
|
||||||
|
("dropped", G_TYPE_UINT, self->skipped_last,
|
||||||
|
"from", G_TYPE_UINT64, self->skip_from_timestamp,
|
||||||
|
"to", G_TYPE_UINT64, self->skip_to_timestamp, NULL));
|
||||||
self->skipped_last = 0;
|
self->skipped_last = 0;
|
||||||
}
|
}
|
||||||
self->skipped_last += skipped_packets;
|
self->skipped_last += skipped_packets;
|
||||||
|
|
|
@ -859,11 +859,16 @@ gst_decklink_video_src_got_frame (GstElement * element,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skipped_frames == 0 && self->skipped_last > 0) {
|
if (skipped_frames == 0 && self->skipped_last > 0) {
|
||||||
GST_WARNING_OBJECT (self,
|
GST_ELEMENT_WARNING_WITH_DETAILS (self,
|
||||||
"Dropped %u old frames from %" GST_TIME_FORMAT " to %"
|
STREAM, FAILED,
|
||||||
|
("Dropped %u old frames from %" GST_TIME_FORMAT " to %"
|
||||||
GST_TIME_FORMAT, self->skipped_last,
|
GST_TIME_FORMAT, self->skipped_last,
|
||||||
GST_TIME_ARGS (self->skip_from_timestamp),
|
GST_TIME_ARGS (self->skip_from_timestamp),
|
||||||
GST_TIME_ARGS (self->skip_to_timestamp));
|
GST_TIME_ARGS (self->skip_to_timestamp)),
|
||||||
|
(NULL),
|
||||||
|
("dropped", G_TYPE_UINT, self->skipped_last,
|
||||||
|
"from", G_TYPE_UINT64, self->skip_from_timestamp,
|
||||||
|
"to", G_TYPE_UINT64, self->skip_to_timestamp, NULL));
|
||||||
self->skipped_last = 0;
|
self->skipped_last = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue