mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
theoradec: Use new gst_video_decoder_set_needs_format() API
This commit is contained in:
parent
400d4baf92
commit
4a37d90e9d
1 changed files with 1 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue