[maemo-commits] [maemo-commits] r17758 - in projects/haf/trunk/hildon-thumbnail: . daemon/plugins

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Mar 20 14:03:50 EET 2009
Author: pvanhoof
Date: 2009-03-20 14:03:48 +0200 (Fri, 20 Mar 2009)
New Revision: 17758

Modified:
   projects/haf/trunk/hildon-thumbnail/ChangeLog
   projects/haf/trunk/hildon-thumbnail/daemon/plugins/gstreamer-video-plugin.c
Log:
2009-03-20  Philip Van Hoof  <pvanhoof at codeminded.be>

        * daemon/plugins/gstreamer-video-plugin.c: Seeking 30 seconds into the
        video before making a thumbnail of the video.

        Fixes Bug# 92748



Modified: projects/haf/trunk/hildon-thumbnail/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-03-20 11:42:48 UTC (rev 17757)
+++ projects/haf/trunk/hildon-thumbnail/ChangeLog	2009-03-20 12:03:48 UTC (rev 17758)
@@ -1,5 +1,12 @@
 2009-03-20  Philip Van Hoof  <pvanhoof at codeminded.be>
 
+	* daemon/plugins/gstreamer-video-plugin.c: Seeking 30 seconds into the
+	video before making a thumbnail of the video.
+
+	Fixes Bug# 92748
+
+2009-03-20  Philip Van Hoof  <pvanhoof at codeminded.be>
+
 	* config.h.in
 	* configure.ac
 	* daemon/thumb-hal.c

Modified: projects/haf/trunk/hildon-thumbnail/daemon/plugins/gstreamer-video-plugin.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/daemon/plugins/gstreamer-video-plugin.c	2009-03-20 11:42:48 UTC (rev 17757)
+++ projects/haf/trunk/hildon-thumbnail/daemon/plugins/gstreamer-video-plugin.c	2009-03-20 12:03:48 UTC (rev 17758)
@@ -271,6 +271,8 @@
 }
 */
 
+
+
 static void
 video_thumbnail_create (VideoThumbnailer *thumber, GError **error)
 {
@@ -377,6 +379,10 @@
 	gst_object_unref (videopad);
 	gst_bin_add (GST_BIN (thumber->pipeline), thumber->bin);
 
+	gst_element_seek (thumber->pipeline, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,
+		GST_SEEK_TYPE_SET, 30000000000 /* 30 seconds worth of nanoseconds */,
+		GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE);
+
 	/* Run */
 	gst_element_set_state (thumber->pipeline, GST_STATE_PAUSED);
 


More information about the maemo-commits mailing list