diff options
author | Kyrylo Polezhaiev <kirushyk@gmail.com> | 2016-02-02 19:18:26 +0200 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2018-05-07 01:34:08 +1000 |
commit | 7d4b03752772de5c7527dda8fea97b8a05c21517 (patch) | |
tree | 2978538446cc6e95f9164791e89a72e135420cd9 /gst | |
parent | cd499132830f4315f4ec6f09e1c45fd1678696cd (diff) | |
download | gstreamer-plugins-bad-7d4b03752772de5c7527dda8fea97b8a05c21517.tar.gz |
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
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gdp/dataprotocol.c | 4 | ||||
-rw-r--r-- | 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 47b0f7b19..5ed1ca367 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 3546dd86a..493472f91 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, |