videotestsrc: Initialize GstVideoInfo in ::start()

Otherwise we end up with bogus values and races
This commit is contained in:
Edward Hervey 2012-11-02 10:04:16 +01:00 committed by Edward Hervey
parent 96efe720a1
commit 46ce07333b

View file

@ -924,6 +924,8 @@ gst_video_test_src_start (GstBaseSrc * basesrc)
src->accum_frames = 0; src->accum_frames = 0;
src->accum_rtime = 0; src->accum_rtime = 0;
gst_video_info_init (&src->info);
return TRUE; return TRUE;
} }