From: tanya Date: Tue, 3 Aug 2010 14:13:02 +0000 (+0300) Subject: debuging X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=9251cd505d7f89944b7d63af8906d6a5238e6579;p=livewp debuging --- diff --git a/applet/src/livewp-scene.c b/applet/src/livewp-scene.c index 69f71dd..3ab90c7 100644 --- a/applet/src/livewp-scene.c +++ b/applet/src/livewp-scene.c @@ -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){