theoradec: Require caps to be set before data flow happens
This commit is contained in:
parent
97784b1563
commit
e39fa41d74
@ -397,7 +397,12 @@ theora_handle_type_packet (GstTheoraDec * dec)
|
|||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
GstVideoCodecState *state;
|
GstVideoCodecState *state;
|
||||||
GstVideoFormat fmt;
|
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",
|
GST_DEBUG_OBJECT (dec, "fps %d/%d, PAR %d/%d",
|
||||||
dec->info.fps_numerator, dec->info.fps_denominator,
|
dec->info.fps_numerator, dec->info.fps_denominator,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user