[gstreamermm] MessageDuration: Correct variables named 'position' to 'duration'.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] MessageDuration: Correct variables named 'position' to 'duration'.
- Date: Mon, 22 Mar 2010 04:10:20 +0000 (UTC)
commit 162294a5337983784727b1b03aa21beb72d553c6
Author: kitone <kitone free fr>
Date: Sun Mar 21 23:57:11 2010 -0400
MessageDuration: Correct variables named 'position' to 'duration'.
* gstreamer/src/message.ccg:
* gstreamer/src/message.hg: Rename occurrences of 'position' to
* 'duration' in Gst::MessageDuration.
ChangeLog | 8 ++++++++
gstreamer/src/message.ccg | 14 +++++++-------
gstreamer/src/message.hg | 8 ++++----
3 files changed, 19 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5c8af08..fb1dd3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-21 kitone <kitone free fr>
+
+ MessageDuration: Correct variables named 'position' to 'duration'.
+
+ * gstreamer/src/message.ccg:
+ * gstreamer/src/message.hg: Rename occurrences of 'position' to
+ 'duration' in Gst::MessageDuration.
+
2010-03-15 José Alburquerque <jaalburqu svn gnome org>
Regenerate defs files using new GStreamer release (0.10.28).
diff --git a/gstreamer/src/message.ccg b/gstreamer/src/message.ccg
index b8156ad..8f3bb65 100644
--- a/gstreamer/src/message.ccg
+++ b/gstreamer/src/message.ccg
@@ -691,24 +691,24 @@ MessageDuration::MessageDuration(GstMessage* castitem)
: Message(castitem)
{}
-Glib::RefPtr<Gst::Message> MessageDuration::create(const Glib::RefPtr<Gst::Object>& src, Format format, gint64 position)
+Glib::RefPtr<Gst::Message> MessageDuration::create(const Glib::RefPtr<Gst::Object>& src, Format format, gint64 duration)
{
GstMessage* message = gst_message_new_duration(Glib::unwrap(src),
- static_cast<GstFormat>(format), position);
+ static_cast<GstFormat>(format), duration);
return Gst::Message::wrap(message, false);
}
-void MessageDuration::parse(Format& format, gint64& position) const
+void MessageDuration::parse(Format& format, gint64& duration) const
{
gst_message_parse_duration(const_cast<GstMessage*>(gobj()),
- reinterpret_cast<GstFormat*>(&format), &position);
+ reinterpret_cast<GstFormat*>(&format), &duration);
}
gint64 MessageDuration::parse() const
{
- gint64 position = 0;
- gst_message_parse_duration(const_cast<GstMessage*>(gobj()), 0, &position);
- return position;
+ gint64 duration = 0;
+ gst_message_parse_duration(const_cast<GstMessage*>(gobj()), 0, &duration);
+ return duration;
}
Format MessageDuration::parse_format() const
diff --git a/gstreamer/src/message.hg b/gstreamer/src/message.hg
index 08fdda7..00901a1 100644
--- a/gstreamer/src/message.hg
+++ b/gstreamer/src/message.hg
@@ -944,7 +944,7 @@ public:
* @param duration The new duration.
* @return The new duration message. MT safe.
*/
- static Glib::RefPtr<Gst::Message> create(const Glib::RefPtr<Gst::Object>& src, Format format, gint64 position);
+ static Glib::RefPtr<Gst::Message> create(const Glib::RefPtr<Gst::Object>& src, Format format, gint64 duration);
/** Extracts the duration and format from the duration message. The duration
* might be Gst::CLOCK_TIME_NONE, which indicates that the duration has
@@ -954,9 +954,9 @@ public:
* MT safe.
*
* @param format Result location for the format.
- * @param position Result location for the position.
+ * @param duration Result location for the duration.
*/
- void parse(Format& format, gint64& position) const;
+ void parse(Format& format, gint64& duration) const;
_IGNORE(gst_message_parse_duration)
/** Extracts and returns the duration from the duration message. The duration
@@ -966,7 +966,7 @@ public:
*
* MT safe.
*
- * @return The position.
+ * @return The duration.
*/
gint64 parse() const;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]