vdpau: fix a maybe-uninitialized warning
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 15:11:41 +0000 (17:11 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 15:14:47 +0000 (17:14 +0200)
src/gallium/state_trackers/vdpau/presentation.c

index 7869f4c..54f15ff 100644 (file)
@@ -210,7 +210,7 @@ vlVdpPresentationQueueDisplay(VdpPresentationQueue presentation_queue,
 
    struct pipe_context *pipe;
    struct pipe_resource *tex;
-   struct pipe_surface surf_templ, *surf_draw;
+   struct pipe_surface surf_templ, *surf_draw = NULL;
    struct u_rect src_rect, dst_clip, *dirty_area;
 
    struct vl_compositor *compositor;