miniobject: fix for changed miniobject

This commit is contained in:
Wim Taymans 2011-02-23 15:46:56 +01:00
parent b967bf531b
commit 03c710d6cd
5 changed files with 7 additions and 7 deletions

View file

@ -301,7 +301,7 @@ gst_encode_bin_class_init (GstEncodeBinClass * klass)
* to %GST_STATE_PAUSED or higher. * to %GST_STATE_PAUSED or higher.
*/ */
g_object_class_install_property (gobject_klass, PROP_PROFILE, 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, "The GstEncodingProfile to use", GST_TYPE_ENCODING_PROFILE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -456,7 +456,7 @@ gst_encode_bin_set_property (GObject * object, guint prop_id,
switch (prop_id) { switch (prop_id) {
case PROP_PROFILE: case PROP_PROFILE:
gst_encode_bin_set_profile (ebin, gst_encode_bin_set_profile (ebin,
(GstEncodingProfile *) gst_value_get_mini_object (value)); (GstEncodingProfile *) g_value_get_object (value));
break; break;
case PROP_QUEUE_BUFFERS_MAX: case PROP_QUEUE_BUFFERS_MAX:
ebin->queue_buffers_max = g_value_get_uint (value); 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) { switch (prop_id) {
case PROP_PROFILE: case PROP_PROFILE:
gst_value_set_mini_object (value, (GstMiniObject *) ebin->profile); g_value_set_object (value, (GObject *) ebin->profile);
break; break;
case PROP_QUEUE_BUFFERS_MAX: case PROP_QUEUE_BUFFERS_MAX:
g_value_set_uint (value, ebin->queue_buffers_max); g_value_set_uint (value, ebin->queue_buffers_max);

View file

@ -408,7 +408,7 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
0.0, VOLUME_MAX_DOUBLE, 1.0, 0.0, VOLUME_MAX_DOUBLE, 1.0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_klass, ARG_FRAME, 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, "The last frame (NULL = no video available)", GST_TYPE_BUFFER,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_klass, ARG_FONT_DESC, g_object_class_install_property (gobject_klass, ARG_FONT_DESC,

View file

@ -754,7 +754,7 @@ gst_play_bin_class_init (GstPlayBinClass * klass)
* The #GstCaps on the buffer will describe the format of the buffer. * The #GstCaps on the buffer will describe the format of the buffer.
*/ */
g_object_class_install_property (gobject_klass, PROP_FRAME, 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)", "The last frame (NULL = no video available)",
GST_TYPE_BUFFER, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); GST_TYPE_BUFFER, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_klass, PROP_FONT_DESC, g_object_class_install_property (gobject_klass, PROP_FONT_DESC,

View file

@ -365,7 +365,7 @@ gst_play_sink_class_init (GstPlaySinkClass * klass)
* Since: 0.10.30 * Since: 0.10.30
*/ */
g_object_class_install_property (gobject_klass, PROP_FRAME, 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)", "The last frame (NULL = no video available)",
GST_TYPE_BUFFER, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); GST_TYPE_BUFFER, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/** /**

View file

@ -152,7 +152,7 @@ gst_ssa_parse_setcaps (GstPad * sinkpad, GstCaps * caps)
parse->framed = TRUE; parse->framed = TRUE;
parse->send_tags = 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); g_return_val_if_fail (priv != NULL, FALSE);
gst_buffer_ref (priv); gst_buffer_ref (priv);