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
This commit is contained in:
Kyrylo Polezhaiev 2016-02-02 19:18:26 +02:00 committed by Jan Schmidt
parent cd49913283
commit 7d4b037527
2 changed files with 3 additions and 3 deletions

View 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:
{

View 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,