PROP_DISPLAY,
PROP_CAPS,
+
+ N_PROPERTIES
};
+static GParamSpec *g_properties[N_PROPERTIES] = { NULL, };
+
static void
destroy_buffer(GstBuffer *buffer)
{
*
* The #GstVaapiDisplay this decoder is bound to.
*/
- g_object_class_install_property
- (object_class,
- PROP_DISPLAY,
+ g_properties[PROP_DISPLAY] =
g_param_spec_object("display",
"Display",
"The GstVaapiDisplay this decoder is bound to",
GST_VAAPI_TYPE_DISPLAY,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY);
- g_object_class_install_property
- (object_class,
- PROP_CAPS,
+ g_properties[PROP_CAPS] =
g_param_spec_pointer("caps",
"Decoder caps",
"The decoder caps",
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE|G_PARAM_CONSTRUCT_ONLY);
+
+ g_object_class_install_properties(object_class, N_PROPERTIES, g_properties);
}
static void
}
if (size_changed)
- g_object_notify(G_OBJECT(decoder), "caps");
+ g_object_notify_by_pspec(G_OBJECT(decoder), g_properties[PROP_CAPS]);
}
void
"framerate", GST_TYPE_FRACTION, fps_n, fps_d,
NULL
);
- g_object_notify(G_OBJECT(decoder), "caps");
+ g_object_notify_by_pspec(G_OBJECT(decoder), g_properties[PROP_CAPS]);
}
}
"pixel-aspect-ratio", GST_TYPE_FRACTION, par_n, par_d,
NULL
);
- g_object_notify(G_OBJECT(decoder), "caps");
+ g_object_notify_by_pspec(G_OBJECT(decoder), g_properties[PROP_CAPS]);
}
}
"interlaced", G_TYPE_BOOLEAN, interlaced,
NULL
);
- g_object_notify(G_OBJECT(decoder), "caps");
+ g_object_notify_by_pspec(G_OBJECT(decoder), g_properties[PROP_CAPS]);
}
}