mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
theoradec: Remove use of NEED_DATA
Remove the confusing internal-only use of the GST_VIDEO_DECODER_FLOW_NEED_DATA return code.
This commit is contained in:
parent
f3fdfd9ec8
commit
30c9bb709b
1 changed files with 1 additions and 2 deletions
|
@ -733,7 +733,7 @@ not_initialized:
|
||||||
dropping:
|
dropping:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (dec, "dropping frame because we need a keyframe");
|
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:
|
dropping_qos:
|
||||||
{
|
{
|
||||||
|
@ -819,7 +819,6 @@ theora_dec_handle_frame (GstVideoDecoder * bdec, GstVideoCodecFrame * frame)
|
||||||
res = gst_video_decoder_finish_frame (bdec, frame);
|
res = gst_video_decoder_finish_frame (bdec, frame);
|
||||||
break;
|
break;
|
||||||
case GST_CUSTOM_FLOW_DROP:
|
case GST_CUSTOM_FLOW_DROP:
|
||||||
case GST_VIDEO_DECODER_FLOW_NEED_DATA:
|
|
||||||
res = gst_video_decoder_drop_frame (bdec, frame);
|
res = gst_video_decoder_drop_frame (bdec, frame);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue