summaryrefslogtreecommitdiff
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2010-07-27 13:33:00 (GMT)
committer Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2010-07-30 09:31:59 (GMT)
commit86860beeaecb747b98014ac5eb6d89c64ac85f60 (patch) (side-by-side diff)
tree87ac3373ccc3b8075672e3985cddaf8a98f6f97f
parent0390f0d765545dcf4669b1e9592a133b223f6a8a (diff)
downloadgst-plugins-bad-86860beeaecb747b98014ac5eb6d89c64ac85f60.zip
gst-plugins-bad-86860beeaecb747b98014ac5eb6d89c64ac85f60.tar.gz
vdpaumpegdec: remove unneeded setting of buffer flags
GstBaseVideoDecoder sets GST_VIDEO_BUFFER_TFF for us and GST_BUFFER_FLAG_DELTA_UNIT doesn't make sense for decoded frames.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--sys/vdpau/mpeg/gstvdpmpegdec.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/vdpau/mpeg/gstvdpmpegdec.c b/sys/vdpau/mpeg/gstvdpmpegdec.c
index 086f707..72bda52 100644
--- a/sys/vdpau/mpeg/gstvdpmpegdec.c
+++ b/sys/vdpau/mpeg/gstvdpmpegdec.c
@@ -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) {