Commit 30c9bb70 authored by Jan Schmidt's avatar Jan Schmidt

theoradec: Remove use of NEED_DATA

Remove the confusing internal-only use of
the GST_VIDEO_DECODER_FLOW_NEED_DATA return code.
parent f3fdfd9e
......@@ -733,7 +733,7 @@ not_initialized:
dropping:
{
GST_WARNING_OBJECT (dec, "dropping frame because we need a keyframe");
return GST_VIDEO_DECODER_FLOW_NEED_DATA;
return GST_CUSTOM_FLOW_DROP;
}
dropping_qos:
{
......@@ -819,7 +819,6 @@ theora_dec_handle_frame (GstVideoDecoder * bdec, GstVideoCodecFrame * frame)
res = gst_video_decoder_finish_frame (bdec, frame);
break;
case GST_CUSTOM_FLOW_DROP:
case GST_VIDEO_DECODER_FLOW_NEED_DATA:
res = gst_video_decoder_drop_frame (bdec, frame);
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment