[rhythmbox/gstreamer-0.11] gst: Take a reference on objects returned by iterators
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/gstreamer-0.11] gst: Take a reference on objects returned by iterators
- Date: Tue, 3 Jul 2012 12:47:06 +0000 (UTC)
commit ba40a982969b2dacb7b83a78959aee129d936949
Author: Edward Hervey <edward hervey collabora co uk>
Date: Tue Jul 3 11:16:26 2012 +0200
gst: Take a reference on objects returned by iterators
backends/gstreamer/rb-player-gst-helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-helper.c b/backends/gstreamer/rb-player-gst-helper.c
index b045c13..7eda46f 100644
--- a/backends/gstreamer/rb-player-gst-helper.c
+++ b/backends/gstreamer/rb-player-gst-helper.c
@@ -135,7 +135,7 @@ rb_player_gst_find_element_with_property (GstElement *element, const char *prope
(GCompareFunc) find_property_element,
&r,
(gpointer) property)) {
- result = g_value_get_object (&r);
+ result = g_value_dup_object (&r);
g_value_unset (&r);
}
gst_iterator_free (iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]