projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
400d4ba
)
theoradec: Use new gst_video_decoder_set_needs_format() API
author
Sebastian Dröge
<sebastian@centricular.com>
Thu, 5 Dec 2013 10:39:07 +0000
(11:39 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 5 Dec 2013 10:39:07 +0000
(11:39 +0100)
ext/theora/gsttheoradec.c
patch
|
blob
|
history
diff --git
a/ext/theora/gsttheoradec.c
b/ext/theora/gsttheoradec.c
index
827d24f
..
fee82bd
100644
(file)
--- 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",