- /*
- 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;
- */
+ gdouble rate;
+ GstFormat format;
+ GstSeekFlags flags;
+ GstSeekType cur_type, stop_type;
+ gint64 cur, stop;
+
+ /* FIXME, read rate */
+ rate = 1.0;
+ format = (GstFormat) GST_READ_UINT32_BE (payload);
+ flags = (GstSeekFlags) GST_READ_UINT32_BE (payload + 4);
+ cur_type = (GstSeekType) GST_READ_UINT32_BE (payload + 8);
+ cur = (gint64) GST_READ_UINT64_BE (payload + 12);
+ stop_type = (GstSeekType) GST_READ_UINT32_BE (payload + 20);
+ stop = (gint64) GST_READ_UINT64_BE (payload + 24);
+
+ event = gst_event_new_seek (rate, format, flags, cur_type, cur,
+ stop_type, stop);
+ GST_EVENT_TIMESTAMP (event) = GST_DP_HEADER_TIMESTAMP (header);