From e39fa41d7445d6a4ea0aa6d5d699fee02791abdd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 27 May 2013 13:04:00 +0200 Subject: [PATCH] theoradec: Require caps to be set before data flow happens --- ext/theora/gsttheoradec.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index d4bd024..30f1db4 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -397,7 +397,12 @@ theora_handle_type_packet (GstTheoraDec * dec) GstFlowReturn ret = GST_FLOW_OK; GstVideoCodecState *state; GstVideoFormat fmt; - GstVideoInfo *info = &dec->input_state->info; + GstVideoInfo *info; + + if (!dec->input_state) + return GST_FLOW_NOT_NEGOTIATED; + + info = &dec->input_state->info; GST_DEBUG_OBJECT (dec, "fps %d/%d, PAR %d/%d", dec->info.fps_numerator, dec->info.fps_denominator, -- 2.7.4