g_free (h);
return FALSE;
case GST_EVENT_EOS:
- case GST_EVENT_FLUSH:
- case GST_EVENT_DISCONTINUOUS:
+ case GST_EVENT_FLUSH_START:
+ case GST_EVENT_FLUSH_STOP:
+ case GST_EVENT_NEWSEGMENT:
GST_WRITE_UINT64_BE (h + 8, GST_EVENT_TIMESTAMP (event));
pl_length = 0;
*payload = NULL;
case GST_EVENT_SEEK:
pl_length = 4 + 8 + 8 + 4;
*payload = g_malloc0 (pl_length);
- GST_WRITE_UINT32_BE (*payload, (guint32) GST_EVENT_SEEK_TYPE (event));
- GST_WRITE_UINT64_BE (*payload + 4,
- (guint64) GST_EVENT_SEEK_OFFSET (event));
- GST_WRITE_UINT64_BE (*payload + 12,
- (guint64) GST_EVENT_SEEK_ENDOFFSET (event));
- GST_WRITE_UINT32_BE (*payload + 20,
- (guint32) GST_EVENT_SEEK_ACCURACY (event));
+ /*
+ GST_WRITE_UINT32_BE (*payload, (guint32) GST_EVENT_SEEK_TYPE (event));
+ GST_WRITE_UINT64_BE (*payload + 4,
+ (guint64) GST_EVENT_SEEK_OFFSET (event));
+ GST_WRITE_UINT64_BE (*payload + 12,
+ (guint64) GST_EVENT_SEEK_ENDOFFSET (event));
+ GST_WRITE_UINT32_BE (*payload + 20,
+ (guint32) GST_EVENT_SEEK_ACCURACY (event));
+ */
break;
case GST_EVENT_QOS:
- case GST_EVENT_SIZE:
- case GST_EVENT_RATE:
case GST_EVENT_NAVIGATION:
case GST_EVENT_TAG:
g_warning ("Unhandled event type %d, ignoring", GST_EVENT_TYPE (event));
g_warning ("Unknown event, ignoring");
return FALSE;
case GST_EVENT_EOS:
- case GST_EVENT_FLUSH:
- case GST_EVENT_DISCONTINUOUS:
- event = gst_event_new (type);
+ case GST_EVENT_FLUSH_START:
+ case GST_EVENT_FLUSH_STOP:
+ case GST_EVENT_NEWSEGMENT:
+ event = gst_event_new_custom (type, NULL);
GST_EVENT_TIMESTAMP (event) = GST_DP_HEADER_TIMESTAMP (header);
break;
case GST_EVENT_SEEK:
{
- GstSeekType type;
- gint64 offset, endoffset;
- GstSeekAccuracy accuracy;
-
- type = (GstSeekType) GST_READ_UINT32_BE (payload);
- offset = (gint64) GST_READ_UINT64_BE (payload + 4);
- endoffset = (gint64) GST_READ_UINT64_BE (payload + 12);
- accuracy = (GstSeekAccuracy) GST_READ_UINT32_BE (payload + 20);
- event = gst_event_new_segment_seek (type, offset, endoffset);
- GST_EVENT_TIMESTAMP (event) = GST_DP_HEADER_TIMESTAMP (header);
- GST_EVENT_SEEK_ACCURACY (event) = accuracy;
+ /*
+ GstSeekType type;
+ gint64 offset, endoffset;
+ GstSeekAccuracy accuracy;
+
+ type = (GstSeekType) GST_READ_UINT32_BE (payload);
+ offset = (gint64) GST_READ_UINT64_BE (payload + 4);
+ endoffset = (gint64) GST_READ_UINT64_BE (payload + 12);
+ accuracy = (GstSeekAccuracy) GST_READ_UINT32_BE (payload + 20);
+ event = gst_event_new_segment_seek (type, offset, endoffset);
+ GST_EVENT_TIMESTAMP (event) = GST_DP_HEADER_TIMESTAMP (header);
+ GST_EVENT_SEEK_ACCURACY (event) = accuracy;
+ */
break;
}
case GST_EVENT_QOS:
- case GST_EVENT_SIZE:
- case GST_EVENT_RATE:
case GST_EVENT_NAVIGATION:
case GST_EVENT_TAG:
g_warning ("Unhandled event type %d, ignoring", GST_EVENT_TYPE (event));