GstElement *bin;
GstElement *videosink;
GstFormat format;
-
+ gchar *file_plus_uri;
desktop_plugin->priv->pipeline= gst_pipeline_new("gst-player");
// gst_bus_add_watch(bus, bus_call, NULL);
gst_object_unref (bus);
}
- g_object_set (G_OBJECT (bin), "uri", "file:///home/user/MyDocs/.videos/9.mp4", NULL );
+ file_plus_uri = g_strdup("file://%s",desktop_plugin->priv->theme_string_parametr1);
+ g_object_set (G_OBJECT (bin), "uri", file_plus_uri, NULL );
g_object_set (G_OBJECT (videosink), "force-aspect-ratio", TRUE, NULL );
if (GST_IS_X_OVERLAY (videosink))
gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (videosink), GDK_DRAWABLE_XID(desktop_plugin->priv->window->window));