st/vdpau: fix compiler warning in vlVdpVideoMixerRender
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Mon, 5 Dec 2016 05:25:17 +0000 (10:55 +0530)
committerChristian König <christian.koenig@amd.com>
Mon, 5 Dec 2016 10:20:55 +0000 (11:20 +0100)
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/mixer.c

index c205427fb7ef5da6ec66daf1418a666989e5b47a..aca43c1e26e18cfaa8a5309efcb4a3ff58137e00 100644 (file)
@@ -242,7 +242,7 @@ VdpStatus vlVdpVideoMixerRender(VdpVideoMixer mixer,
    struct pipe_video_buffer *video_buffer;
    struct pipe_sampler_view *sampler_view, sv_templ;
    struct pipe_surface *surface, surf_templ;
-   struct pipe_context *pipe;
+   struct pipe_context *pipe = NULL;
    struct pipe_resource res_tmpl, *res;
 
    vlVdpVideoMixer *vmixer;