Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_plugin_change_state (GstElement * element, GstStateChange transition)
- {
- /* TODO: Add GST_DEBUG traces for function enter */
- MyPlugin *my_plugin = MY_PLUGIN (element);
- switch (transition) {
- case GST_STATE_CHANGE_READY_TO_PAUSED:
- my_plugin_start (my_plugin);
- break;
- default:
- break;
- }
- }
- void my_plugin_start(MyPlugin *my_plugin)
- {
- g_print("host is %s\n",my_plugin->property); // This doesn't print the property that I set in my test application
- }
- gst_my_plugin_set_property (GObject * object, guint prop_id,
- const GValue * value, GParamSpec * pspec)
- {
- GstMyPlugin *my_plugin = GST_MY_PLUGIN (object);
- switch (prop_id) {
- case PROP_PROPERTY:
- my_plugin->property = g_value_get_boxed(value);
- break;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement