summaryrefslogtreecommitdiff
path: root/ext/theora/gsttheoradec.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2013-12-05 11:39:07 +0100
committerSebastian Dröge <sebastian@centricular.com>2013-12-05 11:39:07 +0100
commit4a37d90e9d499dc86fb0ee259f7944511740ab6a (patch)
treec78bcc424f736e4bb6353a8b37119096e0f6203a /ext/theora/gsttheoradec.c
parent400d4baf92a0ce8267710991b2baa8204d2392c8 (diff)
theoradec: Use new gst_video_decoder_set_needs_format() API
Diffstat (limited to 'ext/theora/gsttheoradec.c')
-rw-r--r--ext/theora/gsttheoradec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c
index 827d24fc3..fee82bdc2 100644
--- a/ext/theora/gsttheoradec.c
+++ b/ext/theora/gsttheoradec.c
@@ -207,6 +207,7 @@ gst_theora_dec_init (GstTheoraDec * dec)
/* input is packetized,
* but is not marked that way so data gets parsed and keyframes marked */
gst_video_decoder_set_packetized (GST_VIDEO_DECODER (dec), FALSE);
+ gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (dec), TRUE);
}
static gboolean
@@ -398,9 +399,6 @@ theora_handle_type_packet (GstTheoraDec * dec)
GstVideoFormat fmt;
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",