From de95d3a1c4682784b7942784c758cd20b7aa6a23 Mon Sep 17 00:00:00 2001 From: Timo Wischer Date: Thu, 15 Oct 2020 14:49:58 +0200 Subject: [PATCH] avtp: crfsync: Warn when CRF package not yet received Part-of: --- subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfsync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfsync.c b/subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfsync.c index 4b4d083189..005e7fa47b 100644 --- a/subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfsync.c +++ b/subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfsync.c @@ -149,8 +149,10 @@ gst_avtp_crf_sync_transform_ip (GstBaseTransform * parent, GstBuffer * buffer) GstMapInfo info; gboolean res; - if (!avg_period || !current_ts) + if (!avg_period || !current_ts) { + GST_WARNING_OBJECT (avtpcrfsync, "No CRF packet yet received!"); return GST_FLOW_OK; + } res = gst_buffer_map (buffer, &info, GST_MAP_READWRITE); if (!res) {