tests: video: ensure initialization and plug sample leak

This commit is contained in:
Mark Nauwelaerts 2012-07-02 14:22:30 +02:00
parent c849c9c66b
commit 563d3dd0f6

View file

@ -540,6 +540,7 @@ GST_START_TEST (test_video_formats_rgb)
GstCaps *caps; GstCaps *caps;
GstStructure *structure; GstStructure *structure;
gst_video_info_init (&vinfo);
gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_RGB, 800, 600); gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_RGB, 800, 600);
vinfo.par_n = 1; vinfo.par_n = 1;
vinfo.par_d = 1; vinfo.par_d = 1;
@ -840,6 +841,7 @@ GST_START_TEST (test_convert_frame_async)
gst_sample_unref (cf_data.sample); gst_sample_unref (cf_data.sample);
gst_caps_unref (to_caps); gst_caps_unref (to_caps);
gst_sample_unref (from_sample);
g_main_loop_unref (loop); g_main_loop_unref (loop);
} }