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));
}
}