videodecoder: Rename from get_qos_info() to get_qos_proportion()
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 20 Nov 2012 11:08:26 +0000 (12:08 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 20 Nov 2012 11:08:26 +0000 (12:08 +0100)
And only return the proportion. The earliest time already can be
retrieved from get_max_decode_time() and by renaming we allow this
to be more extensible in the future.

docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/video/gstvideodecoder.c
gst-libs/gst/video/gstvideodecoder.h
win32/common/libgstvideo.def

index ee2ea4b..606645f 100644 (file)
@@ -2253,7 +2253,7 @@ gst_video_decoder_get_max_decode_time
 gst_video_decoder_get_max_errors
 gst_video_decoder_get_oldest_frame
 gst_video_decoder_get_packetized
-gst_video_decoder_get_qos_info
+gst_video_decoder_get_qos_proportion
 gst_video_decoder_have_frame
 gst_video_decoder_get_latency
 gst_video_decoder_set_latency
index d48aa0a..64ef6ad 100644 (file)
@@ -3159,28 +3159,24 @@ gst_video_decoder_get_max_decode_time (GstVideoDecoder *
 }
 
 /**
- * gst_video_decoder_get_qos_info:
+ * gst_video_decoder_get_qos_proportion:
  * @decoder: a #GstVideoDecoder
  * @proportion: (out) (allow-none): address of variable in which to store the
  *     current QoS proportion, or %NULL
- * @earliest_time: (out) (allow-none): address of variable in which to store the
- *     QoS earliest_time, or %NULL
  *
  * Returns: TRUE on success
  *
  * Since: 1.0.3
  */
 gboolean
-gst_video_decoder_get_qos_info (GstVideoDecoder * decoder, gdouble * proportion,
-    GstClockTime * earliest_time)
+gst_video_decoder_get_qos_proportion (GstVideoDecoder * decoder,
+    gdouble * proportion)
 {
   g_return_val_if_fail (GST_IS_VIDEO_DECODER (decoder), FALSE);
 
   GST_OBJECT_LOCK (decoder);
   if (proportion != NULL)
     *proportion = decoder->priv->proportion;
-  if (earliest_time != NULL)
-    *earliest_time = decoder->priv->earliest_time;
   GST_OBJECT_UNLOCK (decoder);
 
   return TRUE;
index 9dbe571..074e119 100644 (file)
@@ -353,9 +353,8 @@ gboolean         gst_video_decoder_negotiate           (GstVideoDecoder * decode
 GstClockTimeDiff gst_video_decoder_get_max_decode_time (GstVideoDecoder *decoder,
                                                        GstVideoCodecFrame *frame);
 
-gboolean         gst_video_decoder_get_qos_info (GstVideoDecoder * decoder,
-                                                 gdouble *proportion,
-                                                 GstClockTime *earliest_time);
+gboolean         gst_video_decoder_get_qos_proportion (GstVideoDecoder * decoder,
+                                                       gdouble         * proportion);
 
 GstFlowReturn    gst_video_decoder_finish_frame (GstVideoDecoder *decoder,
                                                 GstVideoCodecFrame *frame);
index 797287e..1f99c75 100644 (file)
@@ -88,7 +88,7 @@ EXPORTS
        gst_video_decoder_get_oldest_frame
        gst_video_decoder_get_output_state
        gst_video_decoder_get_packetized
-       gst_video_decoder_get_qos_info
+       gst_video_decoder_get_qos_proportion
        gst_video_decoder_get_type
        gst_video_decoder_have_frame
        gst_video_decoder_merge_tags