From: <tp...@fr...> - 2005-12-27 22:30:57
|
CVS Root: /cvs/gstreamer Module: gst-plugins-base Changes by: tpm Date: Tue Dec 27 2005 14:29:55 PST Log message: * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_class_init), (gst_video_test_src_start): Add start method to reset running time and number of frames sent when starting up (fixes #324696; patch by: Michal Benes). Modified files: . : ChangeLog gst/videotestsrc: gstvideotestsrc.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.2244&r2=1.2245 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c.diff?r1=1.95&r2=1.96 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v retrieving revision 1.2244 retrieving revision 1.2245 diff -u -d -r1.2244 -r1.2245 --- ChangeLog 27 Dec 2005 21:58:28 -0000 1.2244 +++ ChangeLog 27 Dec 2005 22:29:43 -0000 1.2245 @@ -1,5 +1,12 @@ 2005-12-27 Tim-Philipp Müller <tim at centricular dot net> + * gst/videotestsrc/gstvideotestsrc.c: + (gst_video_test_src_class_init), (gst_video_test_src_start): + Add start method to reset running time and number of frames sent + when starting up (fixes #324696; patch by: Michal Benes). + +2005-12-27 Tim-Philipp Müller <tim at centricular dot net> * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-base-plugins-docs.sgml: * docs/plugins/gst-plugins-base-plugins-sections.txt: Index: gstvideotestsrc.c RCS file: /cvs/gstreamer/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -r1.95 -r1.96 --- gstvideotestsrc.c 12 Dec 2005 15:09:55 -0000 1.95 +++ gstvideotestsrc.c 27 Dec 2005 22:29:43 -0000 1.96 @@ -88,7 +88,7 @@ GstBuffer * buffer, GstClockTime * start, GstClockTime * end); static GstFlowReturn gst_video_test_src_create (GstPushSrc * psrc, GstBuffer ** buffer); - +static gboolean gst_video_test_src_start (GstBaseSrc * basesrc); #define GST_TYPE_VIDEO_TEST_SRC_PATTERN (gst_video_test_src_pattern_get_type ()) static GType @@ -154,6 +154,7 @@ gstbasesrc_class->do_seek = gst_video_test_src_do_seek; gstbasesrc_class->query = gst_video_test_src_query; gstbasesrc_class->get_times = gst_video_test_src_get_times; + gstbasesrc_class->start = gst_video_test_src_start; gstpushsrc_class->create = gst_video_test_src_create; } @@ -531,6 +532,17 @@ static gboolean +gst_video_test_src_start (GstBaseSrc * basesrc) +{ + GstVideoTestSrc *src = GST_VIDEO_TEST_SRC (basesrc); + src->running_time = 0; + src->n_frames = 0; + return TRUE; +} +static gboolean plugin_init (GstPlugin * plugin) { oil_init (); |