Expose gst_segment_copy() to make things easier for the c++ bindings.
authorJosé Alburquerque <jaalburqu@svn.gnome.org>
Wed, 9 Apr 2008 22:37:22 +0000 (22:37 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 9 Apr 2008 22:37:22 +0000 (22:37 +0000)
Original commit message from CVS:
Patch by:  José Alburquerque <jaalburqu at svn dot gnome dot org>
* 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()

ChangeLog
docs/gst/gstreamer-sections.txt
gst/gstsegment.c
gst/gstsegment.h
win32/common/libgstreamer.def

index 4879d55..8ce645b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2008-04-09  Tim-Philipp Müller  <tim at centricular dot net>
 
+       Patch by:  José Alburquerque <jaalburqu at svn dot gnome dot org>
+
+       * 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  <tim at centricular dot net>
+
        * gst/gst.c: (gst_init_get_option_group), (init_post):
          Fix const position; ref GType classes for enum types to work
          around thread-safety issues in GLib versions < 2.16.
index 2c96bad..e29d214 100644 (file)
@@ -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
index dd589a4..1ed4717 100644 (file)
  * 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;
index ce5e470..18c728b 100644 (file)
@@ -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);
index df61e45..b3bc93f 100644 (file)
@@ -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