mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
gstvalue: Adding offset to GstSegment serialize/deserialize.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=693587
This commit is contained in:
parent
314400d45a
commit
bd65fc0036
1 changed files with 2 additions and 1 deletions
|
@ -1865,13 +1865,13 @@ gst_value_serialize_segment_internal (const GValue * value, gboolean escape)
|
|||
gchar *t, *res;
|
||||
GstStructure *s;
|
||||
|
||||
/* FIXME: serialize segment offset as well ? */
|
||||
s = gst_structure_new ("GstSegment",
|
||||
"flags", GST_TYPE_SEGMENT_FLAGS, seg->flags,
|
||||
"rate", G_TYPE_DOUBLE, seg->rate,
|
||||
"applied-rate", G_TYPE_DOUBLE, seg->applied_rate,
|
||||
"format", GST_TYPE_FORMAT, seg->format,
|
||||
"base", G_TYPE_UINT64, seg->base,
|
||||
"offset", G_TYPE_UINT64, seg->offset,
|
||||
"start", G_TYPE_UINT64, seg->start,
|
||||
"stop", G_TYPE_UINT64, seg->stop,
|
||||
"time", G_TYPE_UINT64, seg->time,
|
||||
|
@ -1912,6 +1912,7 @@ gst_value_deserialize_segment (GValue * dest, const gchar * s)
|
|||
"applied-rate", G_TYPE_DOUBLE, &seg.applied_rate,
|
||||
"format", GST_TYPE_FORMAT, &seg.format,
|
||||
"base", G_TYPE_UINT64, &seg.base,
|
||||
"offset", G_TYPE_UINT64, &seg.offset,
|
||||
"start", G_TYPE_UINT64, &seg.start,
|
||||
"stop", G_TYPE_UINT64, &seg.stop,
|
||||
"time", G_TYPE_UINT64, &seg.time,
|
||||
|
|
Loading…
Reference in a new issue