summaryrefslogtreecommitdiff
path: root/sys/vdpau/gstvdpvideopostprocess.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vdpau/gstvdpvideopostprocess.c')
-rw-r--r--sys/vdpau/gstvdpvideopostprocess.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/vdpau/gstvdpvideopostprocess.c b/sys/vdpau/gstvdpvideopostprocess.c
index 4658f901d..adaabf4bc 100644
--- a/sys/vdpau/gstvdpvideopostprocess.c
+++ b/sys/vdpau/gstvdpvideopostprocess.c
@@ -596,6 +596,7 @@ static gboolean
596gst_vdp_vpp_start (GstVdpVideoPostProcess * vpp) 596gst_vdp_vpp_start (GstVdpVideoPostProcess * vpp)
597{ 597{
598 gint i; 598 gint i;
599 GError *err;
599 600
600 vpp->interlaced = FALSE; 601 vpp->interlaced = FALSE;
601 vpp->field_duration = GST_CLOCK_TIME_NONE; 602 vpp->field_duration = GST_CLOCK_TIME_NONE;
@@ -613,7 +614,8 @@ gst_vdp_vpp_start (GstVdpVideoPostProcess * vpp)
613 vpp->n_future_pictures = 0; 614 vpp->n_future_pictures = 0;
614 vpp->n_past_pictures = 0; 615 vpp->n_past_pictures = 0;
615 616
616 vpp->device = gst_vdp_get_device (vpp->display); 617 err = NULL;
618 vpp->device = gst_vdp_get_device (vpp->display, &err);
617 if (G_UNLIKELY (!vpp->device)) 619 if (G_UNLIKELY (!vpp->device))
618 goto device_error; 620 goto device_error;
619 621
@@ -622,8 +624,7 @@ gst_vdp_vpp_start (GstVdpVideoPostProcess * vpp)
622 return TRUE; 624 return TRUE;
623 625
624device_error: 626device_error:
625 GST_ELEMENT_ERROR (vpp, RESOURCE, OPEN_READ, 627 gst_vdp_vpp_post_error (vpp, err);
626 ("Couldn't create GstVdpDevice"), (NULL));
627 return FALSE; 628 return FALSE;
628} 629}
629 630