miniobject: free qdata array when the last qdata is removed
[platform/upstream/gstreamer.git] / gst / gstsegment.h
index 1386c9c..923a06f 100644 (file)
@@ -58,7 +58,7 @@ typedef enum {
  * @GST_SEEK_FLAG_SEGMENT: perform a segment seek.
  * @GST_SEEK_FLAG_TRICKMODE: when doing fast forward or fast reverse playback, allow
  *                     elements to skip frames instead of generating all
- *                     frames. (Since 1.6)
+ *                     frames. (Since: 1.6)
  * @GST_SEEK_FLAG_SNAP_BEFORE: go to a location before the requested position,
  *                     if %GST_SEEK_FLAG_KEY_UNIT this means the keyframe at or before
  *                     the requested position the one at or before the seek target.
@@ -72,10 +72,10 @@ typedef enum {
  * @GST_SEEK_FLAG_TRICKMODE_KEY_UNITS: when doing fast forward or fast reverse
  *                     playback, request that elements only decode keyframes
  *                     and skip all other content, for formats that have
- *                     keyframes. (Since 1.6)
+ *                     keyframes. (Since: 1.6)
  * @GST_SEEK_FLAG_TRICKMODE_NO_AUDIO: when doing fast forward or fast reverse
  *                     playback, request that audio decoder elements skip
- *                     decoding and output only gap events or silence. (Since 1.6)
+ *                     decoding and output only gap events or silence. (Since: 1.6)
  * @GST_SEEK_FLAG_SKIP: Deprecated backward compatibility flag, replaced
  *                     by %GST_SEEK_FLAG_TRICKMODE
  *
@@ -144,12 +144,12 @@ typedef enum {
  * @GST_SEGMENT_FLAG_NONE: no flags
  * @GST_SEGMENT_FLAG_RESET: reset the pipeline running_time to the segment
  *                          running_time
- * @GST_SEGMENT_FLAG_TRICKMODE: perform skip playback (Since 1.6)
+ * @GST_SEGMENT_FLAG_TRICKMODE: perform skip playback (Since: 1.6)
  * @GST_SEGMENT_FLAG_SEGMENT: send SEGMENT_DONE instead of EOS
  * @GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS: Decode only keyframes, where
- *                                        possible (Since 1.6)
+ *                                        possible (Since: 1.6)
  * @GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO: Do not decode any audio, where
- *                                        possible (Since 1.6)
+ *                                        possible (Since: 1.6)
  * @GST_SEGMENT_FLAG_SKIP: Deprecated backward compatibility flag, replaced
  *                         by @GST_SEGMENT_FLAG_TRICKMODE
  *
@@ -209,67 +209,67 @@ struct _GstSegment {
   gpointer        _gst_reserved[GST_PADDING];
 };
 
-GST_EXPORT
+GST_API
 GType        gst_segment_get_type            (void);
 
-GST_EXPORT
+GST_API
 GstSegment * gst_segment_new                 (void) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 GstSegment * gst_segment_copy                (const GstSegment *segment) G_GNUC_MALLOC;
 
-GST_EXPORT
+GST_API
 void         gst_segment_copy_into           (const GstSegment *src, GstSegment *dest);
 
-GST_EXPORT
+GST_API
 void         gst_segment_free                (GstSegment *segment);
 
-GST_EXPORT
+GST_API
 void         gst_segment_init                (GstSegment *segment, GstFormat format);
 
-GST_EXPORT
+GST_API
 gint         gst_segment_to_stream_time_full (const GstSegment *segment, GstFormat format, guint64 position, guint64 * stream_time);
 
-GST_EXPORT
+GST_API
 guint64      gst_segment_to_stream_time      (const GstSegment *segment, GstFormat format, guint64 position);
 
-GST_EXPORT
+GST_API
 gint         gst_segment_position_from_stream_time_full (const GstSegment * segment, GstFormat format, guint64 stream_time, guint64 * position);
 
-GST_EXPORT
+GST_API
 guint64      gst_segment_position_from_stream_time (const GstSegment * segment, GstFormat format, guint64 stream_time);
 
-GST_EXPORT
+GST_API
 guint64      gst_segment_to_running_time     (const GstSegment *segment, GstFormat format, guint64 position);
 
-GST_EXPORT
+GST_API
 gint         gst_segment_to_running_time_full (const GstSegment *segment, GstFormat format, guint64 position,
                                                guint64 * running_time);
 
 GST_DEPRECATED_FOR(gst_segment_position_from_running_time)
 guint64      gst_segment_to_position         (const GstSegment *segment, GstFormat format, guint64 running_time);
 
-GST_EXPORT
+GST_API
 gint         gst_segment_position_from_running_time_full (const GstSegment *segment, GstFormat format, guint64 running_time, guint64 * position);
 
-GST_EXPORT
+GST_API
 guint64      gst_segment_position_from_running_time (const GstSegment *segment, GstFormat format, guint64 running_time);
 
-GST_EXPORT
+GST_API
 gboolean     gst_segment_set_running_time    (GstSegment *segment, GstFormat format, guint64 running_time);
 
-GST_EXPORT
+GST_API
 gboolean     gst_segment_offset_running_time (GstSegment *segment, GstFormat format, gint64 offset);
 
-GST_EXPORT
+GST_API
 gboolean     gst_segment_clip                (const GstSegment *segment, GstFormat format, guint64 start,
                                               guint64 stop, guint64 *clip_start, guint64 *clip_stop);
-GST_EXPORT
+GST_API
 gboolean     gst_segment_do_seek             (GstSegment * segment, gdouble rate,
                                               GstFormat format, GstSeekFlags flags,
                                               GstSeekType start_type, guint64 start,
                                               GstSeekType stop_type, guint64 stop, gboolean * update);
-GST_EXPORT
+GST_API
 gboolean     gst_segment_is_equal            (const GstSegment * s0, const GstSegment * s1);
 
 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC