avtp: crfsync: Warn when CRF package not yet received

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1075>
This commit is contained in:
Timo Wischer 2020-10-15 14:49:58 +02:00
parent a66124a79c
commit de95d3a1c4

View file

@ -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) {