debuging
authortanya <tanyshk@gmail.com>
Tue, 3 Aug 2010 14:13:02 +0000 (17:13 +0300)
committertanya <tanyshk@gmail.com>
Tue, 3 Aug 2010 14:13:02 +0000 (17:13 +0300)
applet/src/livewp-scene.c

index 69f71dd..3ab90c7 100644 (file)
@@ -198,8 +198,8 @@ gboolean cb_timeout0(AWallpaperPlugin *desktop_plugin) {
     gint64 len;
     gint len_seconds = 0;
 
-    if (!desktop_plugin || !desktop_plugin->priv->pipeline)
-        return FALSE;
+    //if (!desktop_plugin || !desktop_plugin->priv->pipeline)
+    //    return FALSE;
     if (desktop_plugin->priv->theme_int_parametr1 == 0){
         if (!gst_element_seek(GST_PIPELINE (desktop_plugin->priv->pipeline), 1.0, GST_FORMAT_TIME,
                                           GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 
@@ -211,6 +211,7 @@ gboolean cb_timeout0(AWallpaperPlugin *desktop_plugin) {
        
     gst_element_query_position(desktop_plugin->priv->pipeline, &fmt, &len);
     len_seconds = len / GST_SECOND;
+    fprintf(stderr, "timeout %i %i\n", len_seconds, desktop_plugin->priv->theme_int_parametr1);
     if (len <0)
         return TRUE;
     if (len_seconds <  desktop_plugin->priv->theme_int_parametr1){