[gstreamermm: 141/167] fixed setting property method
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 141/167] fixed setting property method
- Date: Tue, 3 Sep 2013 19:30:56 +0000 (UTC)
commit 903c551d8bfa2ef233e11f291144425450e7bfdf
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date: Tue Aug 6 13:19:58 2013 +0200
fixed setting property method
gstreamer/src/element.hg | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gstreamer/src/element.hg b/gstreamer/src/element.hg
index 582afe0..668901b 100644
--- a/gstreamer/src/element.hg
+++ b/gstreamer/src/element.hg
@@ -393,11 +393,11 @@ public:
* (e.g. element->property("location", "test.ogg")->property("num_buffers", 20);
*/
template<typename T>
- Glib::RefPtr<Gst::Element> property(const Glib::ustring& name, const T& value)
- {
- set_property(name, value);
- return Glib::RefPtr<Gst::Element>(*this);
- }
+ Glib::RefPtr<Gst::Element> property(const Glib::ustring& name, const T& value)
+ {
+ set_property(name, value);
+ return Glib::RefPtr<Gst::Element>( dynamic_cast<Gst::Element*> (Glib::wrap_auto ((GObject*)(gobj()),
true)) );
+ }
protected:
#m4begin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]