diff --git a/ChangeLog b/ChangeLog index 4879d555b6..8ce645bbd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2008-04-09 Tim-Philipp Müller + + Patch by: José Alburquerque + + * docs/gst/gstreamer-sections.txt: + * gst/gstsegment.c: + * gst/gstsegment.h: + * win32/common/libgstreamer.def: + Expose gst_segment_copy() to make things easier for the c++ bindings. + Fixes #518932. + API: gst_segment_copy() + 2008-04-09 Tim-Philipp Müller * gst/gst.c: (gst_init_get_option_group), (init_post): diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 2c96bad5f9..e29d214de5 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -1780,6 +1780,7 @@ GstSegment gst_segment_clip gst_segment_init gst_segment_new +gst_segment_copy gst_segment_free gst_segment_set_duration gst_segment_set_last_stop diff --git a/gst/gstsegment.c b/gst/gstsegment.c index dd589a47ec..1ed471799a 100644 --- a/gst/gstsegment.c +++ b/gst/gstsegment.c @@ -83,7 +83,15 @@ * Last reviewed on 2007-05-17 (0.10.13) */ -static GstSegment * +/** + * gst_segment_copy: + * @segment: a #GstSegment + * + * Returns: a copy of @segment, free with gst_segment_free(). + * + * Since: 0.10.20 + */ +GstSegment * gst_segment_copy (GstSegment * segment) { GstSegment *result = NULL; diff --git a/gst/gstsegment.h b/gst/gstsegment.h index ce5e4706e5..18c728b12b 100644 --- a/gst/gstsegment.h +++ b/gst/gstsegment.h @@ -74,6 +74,7 @@ struct _GstSegment { GType gst_segment_get_type (void); GstSegment * gst_segment_new (void); +GstSegment * gst_segment_copy (GstSegment *segment); void gst_segment_free (GstSegment *segment); void gst_segment_init (GstSegment *segment, GstFormat format); diff --git a/win32/common/libgstreamer.def b/win32/common/libgstreamer.def index df61e45ccb..b3bc93f054 100644 --- a/win32/common/libgstreamer.def +++ b/win32/common/libgstreamer.def @@ -739,6 +739,7 @@ EXPORTS gst_seek_flags_get_type gst_seek_type_get_type gst_segment_clip + gst_segment_copy gst_segment_free gst_segment_get_type gst_segment_init