[rhythmbox/gstreamer-1.0: 3/39] GstEncodingTarget is now a GObject, not a GstMiniObject
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/gstreamer-1.0: 3/39] GstEncodingTarget is now a GObject, not a GstMiniObject
- Date: Sun, 2 Dec 2012 10:46:25 +0000 (UTC)
commit d6c453ddf909eab0d61071898ac100faafcf2b24
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Feb 27 22:57:35 2012 +1000
GstEncodingTarget is now a GObject, not a GstMiniObject
shell/rb-track-transfer-batch.c | 14 +++++++-------
sources/rb-media-player-source.c | 14 +++++++-------
sources/rb-transfer-target.c | 10 +++++-----
3 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/shell/rb-track-transfer-batch.c b/shell/rb-track-transfer-batch.c
index 561f79b..6f32aeb 100644
--- a/shell/rb-track-transfer-batch.c
+++ b/shell/rb-track-transfer-batch.c
@@ -690,7 +690,7 @@ impl_set_property (GObject *object,
RBTrackTransferBatch *batch = RB_TRACK_TRANSFER_BATCH (object);
switch (prop_id) {
case PROP_ENCODING_TARGET:
- batch->priv->target = GST_ENCODING_TARGET (gst_value_dup_mini_object (value));
+ batch->priv->target = GST_ENCODING_TARGET (g_value_dup_object (value));
break;
case PROP_SOURCE:
batch->priv->source = g_value_dup_object (value);
@@ -713,7 +713,7 @@ impl_get_property (GObject *object,
RBTrackTransferBatch *batch = RB_TRACK_TRANSFER_BATCH (object);
switch (prop_id) {
case PROP_ENCODING_TARGET:
- gst_value_set_mini_object (value, GST_MINI_OBJECT (batch->priv->target));
+ g_value_set_object (value, batch->priv->target);
break;
case PROP_SOURCE:
g_value_set_object (value, batch->priv->source);
@@ -817,11 +817,11 @@ rb_track_transfer_batch_class_init (RBTrackTransferBatchClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ENCODING_TARGET,
- gst_param_spec_mini_object ("encoding-target",
- "encoding target",
- "GstEncodingTarget",
- GST_TYPE_ENCODING_TARGET,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ g_param_spec_object ("encoding-target",
+ "encoding target",
+ "GstEncodingTarget",
+ GST_TYPE_ENCODING_TARGET,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
/**
* RBTrackTransferBatch:source:
*
diff --git a/sources/rb-media-player-source.c b/sources/rb-media-player-source.c
index 566a684..d5992df 100644
--- a/sources/rb-media-player-source.c
+++ b/sources/rb-media-player-source.c
@@ -178,11 +178,11 @@ rb_media_player_source_class_init (RBMediaPlayerSourceClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ENCODING_TARGET,
- gst_param_spec_mini_object ("encoding-target",
- "encoding target",
- "GstEncodingTarget",
- GST_TYPE_ENCODING_TARGET,
- G_PARAM_READWRITE));
+ g_param_spec_object ("encoding-target",
+ "encoding target",
+ "GstEncodingTarget",
+ GST_TYPE_ENCODING_TARGET,
+ G_PARAM_READWRITE));
g_type_class_add_private (klass, sizeof (RBMediaPlayerSourcePrivate));
}
@@ -227,7 +227,7 @@ rb_media_player_source_set_property (GObject *object,
if (priv->encoding_target) {
gst_encoding_target_unref (priv->encoding_target);
}
- priv->encoding_target = GST_ENCODING_TARGET (gst_value_dup_mini_object (value));
+ priv->encoding_target = GST_ENCODING_TARGET (g_value_dup_object (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -247,7 +247,7 @@ rb_media_player_source_get_property (GObject *object,
/* not actually supported in the base class */
break;
case PROP_ENCODING_TARGET:
- gst_value_set_mini_object (value, GST_MINI_OBJECT (priv->encoding_target));
+ g_value_set_object (value, priv->encoding_target);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
diff --git a/sources/rb-transfer-target.c b/sources/rb-transfer-target.c
index 01a6ea5..698286d 100644
--- a/sources/rb-transfer-target.c
+++ b/sources/rb-transfer-target.c
@@ -462,9 +462,9 @@ rb_transfer_target_default_init (RBTransferTargetInterface *interface)
interface->should_transfer = default_should_transfer;
g_object_interface_install_property (interface,
- gst_param_spec_mini_object ("encoding-target",
- "encoding target",
- "GstEncodingTarget",
- GST_TYPE_ENCODING_TARGET,
- G_PARAM_READWRITE));
+ g_param_spec_object ("encoding-target",
+ "encoding target",
+ "GstEncodingTarget",
+ GST_TYPE_ENCODING_TARGET,
+ G_PARAM_READWRITE));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]