From 03c710d6cd272c5c1fda840c12c35ccbc48423f8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 23 Feb 2011 15:46:56 +0100 Subject: [PATCH] miniobject: fix for changed miniobject --- gst/encoding/gstencodebin.c | 6 +++--- gst/playback/gstplaybin.c | 2 +- gst/playback/gstplaybin2.c | 2 +- gst/playback/gstplaysink.c | 2 +- gst/subparse/gstssaparse.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index c1a0e8bbc0..6ad8e60ac3 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -301,7 +301,7 @@ gst_encode_bin_class_init (GstEncodeBinClass * klass) * to %GST_STATE_PAUSED or higher. */ g_object_class_install_property (gobject_klass, PROP_PROFILE, - gst_param_spec_mini_object ("profile", "Profile", + g_param_spec_object ("profile", "Profile", "The GstEncodingProfile to use", GST_TYPE_ENCODING_PROFILE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -456,7 +456,7 @@ gst_encode_bin_set_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_PROFILE: gst_encode_bin_set_profile (ebin, - (GstEncodingProfile *) gst_value_get_mini_object (value)); + (GstEncodingProfile *) g_value_get_object (value)); break; case PROP_QUEUE_BUFFERS_MAX: ebin->queue_buffers_max = g_value_get_uint (value); @@ -487,7 +487,7 @@ gst_encode_bin_get_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_PROFILE: - gst_value_set_mini_object (value, (GstMiniObject *) ebin->profile); + g_value_set_object (value, (GObject *) ebin->profile); break; case PROP_QUEUE_BUFFERS_MAX: g_value_set_uint (value, ebin->queue_buffers_max); diff --git a/gst/playback/gstplaybin.c b/gst/playback/gstplaybin.c index 3aecd7c2e8..ac260130c5 100644 --- a/gst/playback/gstplaybin.c +++ b/gst/playback/gstplaybin.c @@ -408,7 +408,7 @@ gst_play_bin_class_init (GstPlayBinClass * klass) 0.0, VOLUME_MAX_DOUBLE, 1.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_klass, ARG_FRAME, - gst_param_spec_mini_object ("frame", "Frame", + g_param_spec_boxed ("frame", "Frame", "The last frame (NULL = no video available)", GST_TYPE_BUFFER, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_klass, ARG_FONT_DESC, diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 30aa71618b..96c92bfc18 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -754,7 +754,7 @@ gst_play_bin_class_init (GstPlayBinClass * klass) * The #GstCaps on the buffer will describe the format of the buffer. */ g_object_class_install_property (gobject_klass, PROP_FRAME, - gst_param_spec_mini_object ("frame", "Frame", + g_param_spec_boxed ("frame", "Frame", "The last frame (NULL = no video available)", GST_TYPE_BUFFER, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_klass, PROP_FONT_DESC, diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 5ba637ac40..f34d705629 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -365,7 +365,7 @@ gst_play_sink_class_init (GstPlaySinkClass * klass) * Since: 0.10.30 */ g_object_class_install_property (gobject_klass, PROP_FRAME, - gst_param_spec_mini_object ("frame", "Frame", + g_param_spec_boxed ("frame", "Frame", "The last frame (NULL = no video available)", GST_TYPE_BUFFER, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** diff --git a/gst/subparse/gstssaparse.c b/gst/subparse/gstssaparse.c index 5aa68e32eb..ccc9730dbb 100644 --- a/gst/subparse/gstssaparse.c +++ b/gst/subparse/gstssaparse.c @@ -152,7 +152,7 @@ gst_ssa_parse_setcaps (GstPad * sinkpad, GstCaps * caps) parse->framed = TRUE; parse->send_tags = TRUE; - priv = (GstBuffer *) gst_value_get_mini_object (val); + priv = (GstBuffer *) g_value_get_boxed (val); g_return_val_if_fail (priv != NULL, FALSE); gst_buffer_ref (priv);