diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2010-07-27 15:33:00 +0200 |
---|---|---|
committer | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2010-07-30 11:31:59 +0200 |
commit | 86860beeaecb747b98014ac5eb6d89c64ac85f60 (patch) | |
tree | 87ac3373ccc3b8075672e3985cddaf8a98f6f97f /sys/vdpau | |
parent | 0390f0d765545dcf4669b1e9592a133b223f6a8a (diff) |
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 (limited to 'sys/vdpau')
-rw-r--r-- | sys/vdpau/mpeg/gstvdpmpegdec.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/vdpau/mpeg/gstvdpmpegdec.c b/sys/vdpau/mpeg/gstvdpmpegdec.c index 086f7077d..72bda52cf 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) { |