[gstreamermm] fixed eventnewsegment, eventcaps
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] fixed eventnewsegment, eventcaps
- Date: Tue, 10 Dec 2013 12:45:16 +0000 (UTC)
commit b2b0e7bc0317bb8153fb87c539999b016b6b3d72
Author: Marcin Kolny <marcin kolny flytronic pl>
Date: Tue Dec 10 13:44:55 2013 +0100
fixed eventnewsegment, eventcaps
gstreamer/src/event.ccg | 6 +++---
gstreamer/src/event.hg | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gstreamer/src/event.ccg b/gstreamer/src/event.ccg
index 0de9f85..c6fe46b 100644
--- a/gstreamer/src/event.ccg
+++ b/gstreamer/src/event.ccg
@@ -87,9 +87,9 @@ Glib::RefPtr<Gst::EventEos> EventEos::create()
}
Glib::RefPtr<Gst::EventNewSegment>
- EventNewSegment::create(const Glib::RefPtr<Gst::Segment>& segment)
+ EventNewSegment::create(const Gst::Segment& segment)
{
- GstEvent* event = gst_event_new_segment(segment->gobj());
+ GstEvent* event = gst_event_new_segment(segment.gobj());
return Glib::wrap_event_derived<EventNewSegment>(event, false);
}
@@ -393,7 +393,7 @@ Glib::RefPtr<Gst::Caps> EventCaps::parse()
{
GstCaps* gst_caps = 0;
gst_event_parse_caps(gobj(), &gst_caps);
- return Glib::wrap(gst_caps);
+ return Glib::wrap(gst_caps, true);
}
} //namespace Gst
diff --git a/gstreamer/src/event.hg b/gstreamer/src/event.hg
index 6318552..6516a65 100644
--- a/gstreamer/src/event.hg
+++ b/gstreamer/src/event.hg
@@ -279,7 +279,7 @@ public:
*
* Returns: (transfer full): the new SEGMENT event.
*/
- static Glib::RefPtr<Gst::EventNewSegment> create(const Glib::RefPtr<Gst::Segment>& segment);
+ static Glib::RefPtr<Gst::EventNewSegment> create(const Gst::Segment& segment);
/**
* gst_event_parse_segment:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]