From 676375ecfef7aeee533f4a5766d2b19d221dd274 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 4 Jul 2012 09:14:51 +0200 Subject: [PATCH] videodec: add some assert --- gst-libs/gst/video/gstvideodecoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index 268f3036b1..1e7daa4b63 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -2840,6 +2840,7 @@ gst_video_decoder_alloc_output_frame (GstVideoDecoder * int num_bytes = GST_VIDEO_INFO_SIZE (&state->info); g_return_val_if_fail (num_bytes != 0, GST_FLOW_ERROR); + g_return_val_if_fail (frame->output_buffer == NULL, GST_FLOW_ERROR); if (G_UNLIKELY (decoder->priv->output_state_changed || (decoder->priv->output_state