mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-07 19:22:15 +00:00
gst/videotestsrc/gstvideotestsrc.c: Add start method to reset running time and number of frames sent
Original commit message from CVS: * 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).
This commit is contained in:
parent
0eb4eff8aa
commit
4a63fb1ae2
2 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
2005-12-27 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* docs/plugins/Makefile.am:
|
* docs/plugins/Makefile.am:
|
||||||
|
|
|
@ -88,7 +88,7 @@ static void gst_video_test_src_get_times (GstBaseSrc * basesrc,
|
||||||
GstBuffer * buffer, GstClockTime * start, GstClockTime * end);
|
GstBuffer * buffer, GstClockTime * start, GstClockTime * end);
|
||||||
static GstFlowReturn gst_video_test_src_create (GstPushSrc * psrc,
|
static GstFlowReturn gst_video_test_src_create (GstPushSrc * psrc,
|
||||||
GstBuffer ** buffer);
|
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 ())
|
#define GST_TYPE_VIDEO_TEST_SRC_PATTERN (gst_video_test_src_pattern_get_type ())
|
||||||
static GType
|
static GType
|
||||||
|
@ -154,6 +154,7 @@ gst_video_test_src_class_init (GstVideoTestSrcClass * klass)
|
||||||
gstbasesrc_class->do_seek = gst_video_test_src_do_seek;
|
gstbasesrc_class->do_seek = gst_video_test_src_do_seek;
|
||||||
gstbasesrc_class->query = gst_video_test_src_query;
|
gstbasesrc_class->query = gst_video_test_src_query;
|
||||||
gstbasesrc_class->get_times = gst_video_test_src_get_times;
|
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;
|
gstpushsrc_class->create = gst_video_test_src_create;
|
||||||
}
|
}
|
||||||
|
@ -530,6 +531,17 @@ no_buffer:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue