From fce8f3486b49568df38de8e1b940f2c0e98603c5 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 29 Mar 2012 17:22:19 +0200 Subject: [PATCH] tests: videocrop: unmap video frame and unref caps --- tests/check/elements/videocrop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/check/elements/videocrop.c b/tests/check/elements/videocrop.c index 0f3234a3af..2849d8c919 100644 --- a/tests/check/elements/videocrop.c +++ b/tests/check/elements/videocrop.c @@ -217,6 +217,7 @@ videocrop_test_cropping_deinit_context (GstVideoCropTestContext * ctx) gst_element_set_state (ctx->pipeline, GST_STATE_NULL); gst_object_unref (ctx->pipeline); gst_buffer_replace (&ctx->last_buf, NULL); + gst_caps_replace (&ctx->last_caps, NULL); memset (ctx, 0x00, sizeof (GstVideoCropTestContext)); } @@ -316,6 +317,8 @@ check_1x1_buffer (GstBuffer * buf, GstCaps * caps) } } + gst_video_frame_unmap (&frame); + /* fail_unless_equals_int ((pixel & rmask) >> rshift, 0xff); fail_unless_equals_int ((pixel & gmask) >> gshift, 0x00);