vdpaumpegdec: remove unneeded setting of buffer flags
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Tue, 27 Jul 2010 13:33:00 +0000 (15:33 +0200)
committerCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Fri, 30 Jul 2010 09:31:59 +0000 (11:31 +0200)
GstBaseVideoDecoder sets GST_VIDEO_BUFFER_TFF for us and
GST_BUFFER_FLAG_DELTA_UNIT doesn't make sense for decoded frames.

sys/vdpau/mpeg/gstvdpmpegdec.c

index 086f7077dc1a50a2ea34a24421363cf420e3d1d6..72bda52cf69210418a464690f48f1ca65b9061aa 100644 (file)
@@ -381,18 +381,6 @@ gst_vdp_mpeg_dec_handle_frame (GstBaseVideoDecoder * base_video_decoder,
   if (ret != GST_FLOW_OK)
     return ret;
 
-  /* set buffer flags */
-  if (info->picture_coding_type == I_FRAME)
-    GST_BUFFER_FLAG_UNSET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT);
-  else
-    GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT);
-
-  if (info->top_field_first)
-    GST_BUFFER_FLAG_SET (outbuf, GST_VIDEO_BUFFER_TFF);
-  else
-    GST_BUFFER_FLAG_UNSET (outbuf, GST_VIDEO_BUFFER_TFF);
-
-
   frame->src_buffer = GST_BUFFER_CAST (outbuf);
 
   if (info->picture_coding_type == B_FRAME) {