From 7d4b03752772de5c7527dda8fea97b8a05c21517 Mon Sep 17 00:00:00 2001 From: Kyrylo Polezhaiev Date: Tue, 2 Feb 2016 19:18:26 +0200 Subject: [PATCH] gdp: ignore timestamp of event This field is not used and will be removed in 2.0 API. https://bugzilla.gnome.org/show_bug.cgi?id=761462 --- gst/gdp/dataprotocol.c | 4 ++-- gst/gdp/gstgdppay.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/gdp/dataprotocol.c b/gst/gdp/dataprotocol.c index 47b0f7b19f..5ed1ca3671 100644 --- a/gst/gdp/dataprotocol.c +++ b/gst/gdp/dataprotocol.c @@ -307,7 +307,8 @@ gst_dp_payload_event (const GstEvent * event, GstDPHeaderFlag flags) /* length */ GST_WRITE_UINT32_BE (h + 6, pl_length); /* timestamp */ - GST_WRITE_UINT64_BE (h + 10, GST_EVENT_TIMESTAMP (event)); + /* NOTE: timestamp field will be removed from GstEvent in 2.0 API */ + GST_WRITE_UINT64_BE (h + 10, GST_CLOCK_TIME_NONE); GST_DP_SET_CRC (h, flags, string, pl_length); @@ -570,7 +571,6 @@ gst_dp_event_from_packet_0_2 (guint header_length, const guint8 * header, case GST_EVENT_FLUSH_STOP: case GST_EVENT_SEGMENT: event = gst_event_new_custom (type, NULL); - GST_EVENT_TIMESTAMP (event) = GST_DP_HEADER_TIMESTAMP (header); break; case GST_EVENT_SEEK: { diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index 3546dd86a3..493472f910 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -524,7 +524,7 @@ gst_gdp_pay_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) if (!outbuffer) goto no_outbuffer; - GST_BUFFER_TIMESTAMP (outbuffer) = GST_EVENT_TIMESTAMP (event); + GST_BUFFER_TIMESTAMP (outbuffer) = GST_CLOCK_TIME_NONE; GST_BUFFER_DURATION (outbuffer) = 0; /* if we got a new segment or tag event, we should put it on our streamheader,