added real file to uri
[livewp] / applet / src / livewp-scene.c
index 90a4fa3..5cdf663 100644 (file)
@@ -87,7 +87,7 @@ init_scene_Video(AWallpaperPlugin *desktop_plugin)
     GstElement *bin;                                                                                                                                                           
     GstElement *videosink;                                                                                                
     GstFormat format; 
-
+    gchar *file_plus_uri;
 
 
     desktop_plugin->priv->pipeline= gst_pipeline_new("gst-player");
@@ -102,7 +102,8 @@ init_scene_Video(AWallpaperPlugin *desktop_plugin)
 //     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));