[gstreamermm] Query: Correct the docs usage example so that its lines compile.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Query: Correct the docs usage example so that its lines compile.
- Date: Fri, 7 Sep 2012 11:27:11 +0000 (UTC)
commit a6933d2012fbe626eb110320ab6c4338c583e7bc
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Fri Sep 7 07:26:45 2012 -0400
Query: Correct the docs usage example so that its lines compile.
* gstreamer/src/query.hg: The example was not translated correctly
from the C code thus lines from the example would not compile
correctly. The error was discovered on the GStreamer mailing list.
ChangeLog | 8 ++++++++
gstreamer/src/query.hg | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a739ecc..4ecac22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-09-07 Josà Alburquerque <jaalburquerque gmail com>
+
+ Query: Correct the docs usage example so that its lines compile.
+
+ * gstreamer/src/query.hg: The example was not translated correctly
+ from the C code thus lines from the example would not compile
+ correctly. The error was discovered on the GStreamer mailing list.
+
2012-08-15 Josà Alburquerque <jaalburquerque gmail com>
Examples: Fix the media player example for MinGW.
diff --git a/gstreamer/src/query.hg b/gstreamer/src/query.hg
index e9df36a..6be1806 100644
--- a/gstreamer/src/query.hg
+++ b/gstreamer/src/query.hg
@@ -103,7 +103,7 @@ _IGNORE(gst_query_type_to_quark)
* bool res = pipeline->query(query);
* if(res)
* {
- * gint64 duration = query.parse();
+ * gint64 duration = Glib::RefPtr<Gst::QueryDuration>::cast_dynamic(query)->parse();
* ...
* }
* @endcode
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]