From 46ce07333b569d679d05e2ef97ec538fead2419b Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 2 Nov 2012 10:04:16 +0100 Subject: [PATCH] videotestsrc: Initialize GstVideoInfo in ::start() Otherwise we end up with bogus values and races --- gst/videotestsrc/gstvideotestsrc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index 462ef1123b..1b5de08d88 100644 --- a/gst/videotestsrc/gstvideotestsrc.c +++ b/gst/videotestsrc/gstvideotestsrc.c @@ -924,6 +924,8 @@ gst_video_test_src_start (GstBaseSrc * basesrc) src->accum_frames = 0; src->accum_rtime = 0; + gst_video_info_init (&src->info); + return TRUE; }