[gstreamermm: 137/167] message's wrapper should copy object
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 137/167] message's wrapper should copy object
- Date: Tue, 3 Sep 2013 19:30:35 +0000 (UTC)
commit 1e6d99e2c09d07d0d2c3380ee97b1673d1927535
Author: Marcin Kolny [loganek] <marcin kolny gmail com>
Date: Mon Aug 5 23:29:54 2013 +0200
message's wrapper should copy object
gstreamer/src/message.ccg | 56 ++++++++++++++++++++++----------------------
1 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/gstreamer/src/message.ccg b/gstreamer/src/message.ccg
index 032f780..51af9c0 100644
--- a/gstreamer/src/message.ccg
+++ b/gstreamer/src/message.ccg
@@ -52,7 +52,7 @@ Glib::RefPtr<Gst::MessageEos>
MessageEos::create(const Glib::RefPtr<Gst::Object>& src)
{
GstMessage* message = gst_message_new_eos(Glib::unwrap(src));
- return Glib::wrap_msg_derived<Gst::MessageEos>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageEos>(message, true);
}
Glib::RefPtr<Gst::MessageError>
@@ -61,7 +61,7 @@ Glib::RefPtr<Gst::MessageError>
{
GstMessage* message = gst_message_new_error(Glib::unwrap(src), error.gobj(),
reinterpret_cast<const gchar*>(debug.c_str()));
- return Glib::wrap_msg_derived<Gst::MessageError>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageError>(message, true);
}
void MessageError::parse(Glib::Error& error, std::string& debug) const
@@ -109,7 +109,7 @@ Glib::RefPtr<Gst::MessageWarning>
{
GstMessage* message = gst_message_new_warning(Glib::unwrap(src),
error.gobj(), reinterpret_cast<const gchar*>(debug.c_str()));
- return Glib::wrap_msg_derived<Gst::MessageWarning>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageWarning>(message, true);
}
void MessageWarning::parse(Glib::Error& error, std::string& debug) const
@@ -158,7 +158,7 @@ Glib::RefPtr<Gst::MessageInfo>
{
GstMessage* message = gst_message_new_info(Glib::unwrap(src), error.gobj(),
reinterpret_cast<const gchar*>(debug.c_str()));
- return Glib::wrap_msg_derived<Gst::MessageInfo>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageInfo>(message, true);
}
@@ -207,7 +207,7 @@ Glib::RefPtr<Gst::MessageTag>
//We create a copy because gst_message_new_tag() takes ownership:
GstTagList* c_taglist = gst_tag_list_copy(taglist.gobj());
GstMessage* message = gst_message_new_tag(Glib::unwrap(src), c_taglist);
- return Glib::wrap_msg_derived<Gst::MessageTag>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageTag>(message, true);
}
void MessageTag::parse(Gst::TagList& tag_list)
@@ -232,7 +232,7 @@ Glib::RefPtr<Gst::MessageBuffering>
MessageBuffering::create(const Glib::RefPtr<Gst::Object>& src, int percent)
{
GstMessage* message = gst_message_new_buffering(Glib::unwrap(src), percent);
- return Glib::wrap_msg_derived<Gst::MessageBuffering>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageBuffering>(message, true);
}
int MessageBuffering::parse() const
@@ -300,7 +300,7 @@ Glib::RefPtr<Gst::MessageStateChanged>
GstMessage* message = gst_message_new_state_changed(Glib::unwrap(src),
static_cast<GstState>(oldstate), static_cast<GstState>(newstate),
static_cast<GstState>(pending));
- return Glib::wrap_msg_derived<Gst::MessageStateChanged>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageStateChanged>(message, true);
}
void MessageStateChanged::parse(State& oldstate, State& newstate,
@@ -342,7 +342,7 @@ Glib::RefPtr<Gst::MessageStateDirty>
MessageStateDirty::create(const Glib::RefPtr<Gst::Object>& src)
{
GstMessage* message = gst_message_new_state_dirty(Glib::unwrap(src));
- return Glib::wrap_msg_derived<Gst::MessageStateDirty>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageStateDirty>(message, true);
}
Glib::RefPtr<Gst::MessageStepDone>
@@ -353,7 +353,7 @@ Glib::RefPtr<Gst::MessageStepDone>
GstMessage* message = gst_message_new_step_done(Glib::unwrap(src),
static_cast<GstFormat>(format), amount, rate, flush, intermediate,
duration, eos);
- return Glib::wrap_msg_derived<Gst::MessageStepDone>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageStepDone>(message, true);
}
void MessageStepDone::parse(Gst::Format& format, guint64& amount, double& rate,
@@ -434,7 +434,7 @@ Glib::RefPtr<Gst::MessageClockProvide>
{
GstMessage* message = gst_message_new_clock_provide(Glib::unwrap(src),
Glib::unwrap(clock), ready);
- return Glib::wrap_msg_derived<Gst::MessageClockProvide>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageClockProvide>(message, true);
}
void MessageClockProvide::parse(Glib::RefPtr<Gst::Clock>& clock, bool& ready) const
@@ -473,7 +473,7 @@ Glib::RefPtr<Gst::MessageClockLost>
{
GstMessage* message = gst_message_new_clock_lost(Glib::unwrap(src),
Glib::unwrap(clock));
- return Glib::wrap_msg_derived<Gst::MessageClockLost>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageClockLost>(message, true);
}
Glib::RefPtr<Gst::Clock> MessageClockLost::parse()
@@ -494,7 +494,7 @@ Glib::RefPtr<Gst::MessageNewClock>
{
GstMessage* message = gst_message_new_new_clock(Glib::unwrap(src),
Glib::unwrap(clock));
- return Glib::wrap_msg_derived<Gst::MessageNewClock>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageNewClock>(message, true);
}
Glib::RefPtr<Gst::Clock> MessageNewClock::parse()
@@ -516,14 +516,14 @@ Glib::RefPtr<Gst::MessageApplication>
GstStructure* copy_struct = gst_structure_copy(structure.gobj());
GstMessage* message = gst_message_new_application(Glib::unwrap(src),
copy_struct);
- return Glib::wrap_msg_derived<Gst::MessageApplication>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageApplication>(message, true);
}
Glib::RefPtr<Gst::MessageApplication>
MessageApplication::create(const Glib::RefPtr<Gst::Object>& src)
{
GstMessage* message = gst_message_new_application(Glib::unwrap(src), 0);
- return Glib::wrap_msg_derived<Gst::MessageApplication>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageApplication>(message, true);
}
Glib::RefPtr<Gst::MessageElement>
@@ -533,14 +533,14 @@ Glib::RefPtr<Gst::MessageElement>
GstStructure* copy_struct = gst_structure_copy(structure.gobj());
GstMessage* message = gst_message_new_element(Glib::unwrap(src),
copy_struct);
- return Glib::wrap_msg_derived<Gst::MessageElement>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageElement>(message, true);
}
Glib::RefPtr<Gst::MessageElement>
MessageElement::create(const Glib::RefPtr<Gst::Object>& src)
{
GstMessage* message = gst_message_new_element(Glib::unwrap(src), 0);
- return Glib::wrap_msg_derived<Gst::MessageElement>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageElement>(message, true);
}
Glib::RefPtr<Gst::MessageCustom>
@@ -550,7 +550,7 @@ Glib::RefPtr<Gst::MessageCustom>
GstStructure* copy_struct = gst_structure_copy(structure.gobj());
GstMessage* message = gst_message_new_custom(GstMessageType(type),
Glib::unwrap(src), copy_struct);
- return Glib::wrap_msg_derived<Gst::MessageCustom>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageCustom>(message, true);
}
Glib::RefPtr<Gst::MessageCustom>
@@ -558,7 +558,7 @@ Glib::RefPtr<Gst::MessageCustom>
{
GstMessage* message = gst_message_new_custom(GstMessageType(type),
Glib::unwrap(src), 0);
- return Glib::wrap_msg_derived<Gst::MessageCustom>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageCustom>(message, true);
}
Glib::RefPtr<Gst::MessageSegmentStart>
@@ -567,7 +567,7 @@ Glib::RefPtr<Gst::MessageSegmentStart>
{
GstMessage* message = gst_message_new_segment_start(Glib::unwrap(src),
static_cast<GstFormat>(format), position);
- return Glib::wrap_msg_derived<Gst::MessageSegmentStart>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageSegmentStart>(message, true);
}
void MessageSegmentStart::parse(Format& format, gint64& position) const
@@ -598,7 +598,7 @@ Glib::RefPtr<Gst::MessageSegmentDone>
{
GstMessage* message = gst_message_new_segment_done(Glib::unwrap(src),
static_cast<GstFormat>(format), position);
- return Glib::wrap_msg_derived<Gst::MessageSegmentDone>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageSegmentDone>(message, true);
}
void MessageSegmentDone::parse(Format& format, gint64& position) const
@@ -629,7 +629,7 @@ Glib::RefPtr<Gst::MessageDuration>
{
GstMessage* message = gst_message_new_duration(Glib::unwrap(src),
static_cast<GstFormat>(format), duration);
- return Glib::wrap_msg_derived<Gst::MessageDuration>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageDuration>(message, true);
}
void MessageDuration::parse(Format& format, gint64& duration) const
@@ -657,7 +657,7 @@ Glib::RefPtr<Gst::MessageLatency>
MessageLatency::create(const Glib::RefPtr<Gst::Object>& src)
{
GstMessage* message = gst_message_new_latency(Glib::unwrap(src));
- return Glib::wrap_msg_derived<Gst::MessageLatency>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageLatency>(message, true);
}
Glib::RefPtr<Gst::MessageAsyncStart>
@@ -665,14 +665,14 @@ Glib::RefPtr<Gst::MessageAsyncStart>
bool new_base_time)
{
GstMessage* message = gst_message_new_async_start(Glib::unwrap(src));
- return Glib::wrap_msg_derived<Gst::MessageAsyncStart>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageAsyncStart>(message, true);
}
Glib::RefPtr<Gst::MessageAsyncDone>
MessageAsyncDone::create(const Glib::RefPtr<Gst::Object>& src, ClockTime running_time)
{
GstMessage* message = gst_message_new_async_done(Glib::unwrap(src), running_time);
- return Glib::wrap_msg_derived<Gst::MessageAsyncDone>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageAsyncDone>(message, true);
}
Glib::RefPtr<Gst::MessageStepStart>
@@ -682,7 +682,7 @@ Glib::RefPtr<Gst::MessageStepStart>
{
GstMessage* message = gst_message_new_step_start(Glib::unwrap(src),
active, static_cast<GstFormat>(format), amount, rate, flush, intermediate);
- return Glib::wrap_msg_derived<Gst::MessageStepStart>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageStepStart>(message, true);
}
void MessageStepStart::parse(bool& active, Gst::Format& format,
@@ -756,7 +756,7 @@ Glib::RefPtr<Gst::MessageStructureChange>
{
GstMessage* message = gst_message_new_structure_change(Glib::unwrap(src),
static_cast<GstStructureChangeType>(type), Glib::unwrap(owner), busy);
- return Glib::wrap_msg_derived<Gst::MessageStructureChange>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageStructureChange>(message, true);
}
void MessageStructureChange::parse(Gst::StructureChangeType& type,
@@ -800,7 +800,7 @@ Glib::RefPtr<Gst::MessageRequestState>
{
GstMessage* message = gst_message_new_request_state(Glib::unwrap(src),
static_cast<GstState>(state));
- return Glib::wrap_msg_derived<Gst::MessageRequestState>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageRequestState>(message, true);
}
Gst::State MessageRequestState::parse() const
@@ -817,7 +817,7 @@ Glib::RefPtr<Gst::MessageStreamStatus>
{
GstMessage* message = gst_message_new_stream_status(Glib::unwrap(src),
static_cast<GstStreamStatusType>(type), Glib::unwrap(owner));
- return Glib::wrap_msg_derived<Gst::MessageStreamStatus>(message, false);
+ return Glib::wrap_msg_derived<Gst::MessageStreamStatus>(message, true);
}
void MessageStreamStatus::set_object(const Glib::RefPtr<Gst::Object>& object)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]