Commit d6c453dd authored by Jonathan Matthew's avatar Jonathan Matthew 🥗
Browse files

GstEncodingTarget is now a GObject, not a GstMiniObject

parent 1ba0bab1
......@@ -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:
*
......
......@@ -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);
......
......@@ -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));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment