theoradec: Remove use of NEED_DATA
authorJan Schmidt <thaytan@noraisin.net>
Thu, 14 Jun 2012 13:24:06 +0000 (23:24 +1000)
committerJan Schmidt <thaytan@noraisin.net>
Sun, 17 Jun 2012 02:42:08 +0000 (12:42 +1000)
Remove the confusing internal-only use of
the GST_VIDEO_DECODER_FLOW_NEED_DATA return code.

ext/theora/gsttheoradec.c

index 4ea7803..1895bdf 100644 (file)
@@ -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: