mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 09:42:19 +00:00
vdpauvideopostprocess: fix small bug
This commit is contained in:
parent
a9687846f6
commit
4926c6c617
1 changed files with 7 additions and 6 deletions
|
@ -328,7 +328,7 @@ gst_vdp_vpp_add_buffer (GstVdpVideoPostProcess * vpp, GstVdpVideoBuffer * buf)
|
|||
pic2.structure = VDP_VIDEO_MIXER_PICTURE_STRUCTURE_BOTTOM_FIELD;
|
||||
} else {
|
||||
pic1.structure = VDP_VIDEO_MIXER_PICTURE_STRUCTURE_BOTTOM_FIELD;
|
||||
pic1.structure = VDP_VIDEO_MIXER_PICTURE_STRUCTURE_TOP_FIELD;
|
||||
pic2.structure = VDP_VIDEO_MIXER_PICTURE_STRUCTURE_TOP_FIELD;
|
||||
}
|
||||
|
||||
pic1.timestamp = GST_BUFFER_TIMESTAMP (buf);
|
||||
|
@ -700,6 +700,12 @@ gst_vdp_vpp_drain (GstVdpVideoPostProcess * vpp)
|
|||
|
||||
continue;
|
||||
|
||||
invalid_caps:
|
||||
gst_buffer_unref (GST_BUFFER (outbuf));
|
||||
GST_ELEMENT_ERROR (vpp, STREAM, FAILED, ("Invalid output caps"), (NULL));
|
||||
ret = GST_FLOW_ERROR;
|
||||
break;
|
||||
|
||||
render_error:
|
||||
gst_buffer_unref (GST_BUFFER (outbuf));
|
||||
GST_ELEMENT_ERROR (vpp, RESOURCE, READ,
|
||||
|
@ -707,11 +713,6 @@ gst_vdp_vpp_drain (GstVdpVideoPostProcess * vpp)
|
|||
("Error returned from vdpau was: %s",
|
||||
device->vdp_get_error_string (status)));
|
||||
ret = GST_FLOW_ERROR;
|
||||
|
||||
invalid_caps:
|
||||
gst_buffer_unref (GST_BUFFER (outbuf));
|
||||
GST_ELEMENT_ERROR (vpp, STREAM, FAILED, ("Invalid output caps"), (NULL));
|
||||
ret = GST_FLOW_ERROR;
|
||||
break;
|
||||
|
||||
output_pad_error:
|
||||
|
|
Loading…
Reference in a new issue