gdp: ignore timestamp of event
authorKyrylo Polezhaiev <kirushyk@gmail.com>
Tue, 2 Feb 2016 17:18:26 +0000 (19:18 +0200)
committerJan Schmidt <jan@centricular.com>
Sun, 6 May 2018 15:34:08 +0000 (01:34 +1000)
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
gst/gdp/gstgdppay.c

index 47b0f7b..5ed1ca3 100644 (file)
@@ -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:
     {
index 3546dd8..493472f 100644 (file)
@@ -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,