Deleted unusable code
authorVlad <vlad@gas.by>
Thu, 29 Jul 2010 13:32:57 +0000 (16:32 +0300)
committerVlad <vlad@gas.by>
Thu, 29 Jul 2010 13:32:57 +0000 (16:32 +0300)
applet/src/livewp-scene.c

index 6661014..ce65c06 100644 (file)
@@ -92,23 +92,17 @@ bus_call (GstBus *bus, GstMessage *msg, AWallpaperPlugin *desktop_plugin)
     switch (GST_MESSAGE_TYPE (msg))
     {
        case GST_MESSAGE_EOS: 
-           fprintf(stderr,"GST_MESSAGE_EOS:\n");
            if (desktop_plugin->priv->rich_animation){
-                fprintf(stderr,"GST_MESSAGE_EOS222222222222222222222222\n");
-                GstClockTime nach   = (GstClockTime)(10 * GST_MSECOND);
-                if (!gst_element_seek(desktop_plugin->priv->pipeline, 1.0, GST_FORMAT_TIME, (GstSeekFlags) (GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT), GST_SEEK_TYPE_SET, nach, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE))
-                    fprintf(stderr,"ERROR in seek\n");
-
-
-
 
+                GstClockTime nach   = (GstClockTime)(0 * GST_MSECOND);
+                if (!gst_element_seek(desktop_plugin->priv->pipeline, 1.0, GST_FORMAT_TIME,
+                   (GstSeekFlags) (GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT), GST_SEEK_TYPE_SET, 
+                   nach, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE))
+                    fprintf(stderr,"ERROR in seek\n");
 
-//                gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_READY);
-
-//                gst_element_set_start_time(desktop_plugin->priv->pipeline, 0);
                 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PLAYING);
+
            }else{
-                   fprintf(stderr,"GST_MESSAGE_EOS33333333333333333333\n");
                    if (desktop_plugin->priv->pipeline){                                                                                                                                                                                                                                             gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_NULL);                                                                                                                                                                                                        gst_object_unref (GST_OBJECT (desktop_plugin->priv->pipeline));                                                                                                                                                                                          
                    } 
            }