From 36e037be6786eae66ab7f6520e23a3e57ed3640e Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Thu, 27 Jan 2011 17:32:49 +0100 Subject: vdpau: Initialize some variables to make gcc 4.6 happy --- sys/vdpau/gstvdpvideopostprocess.c | 3 +++ sys/vdpau/h264/gstvdph264dec.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/vdpau/gstvdpvideopostprocess.c b/sys/vdpau/gstvdpvideopostprocess.c index 1091c0e8c..0b6f33870 100644 --- a/sys/vdpau/gstvdpvideopostprocess.c +++ b/sys/vdpau/gstvdpvideopostprocess.c @@ -248,6 +248,9 @@ gst_vdp_vpp_get_required_pictures (GstVdpVideoPostProcess * vpp) case GST_VDP_DEINTERLACE_METHOD_TEMPORAL_SPATIAL: ret = 2; break; + default: + g_assert_not_reached (); + break; } return ret; diff --git a/sys/vdpau/h264/gstvdph264dec.c b/sys/vdpau/h264/gstvdph264dec.c index 2a237b150..4abc00961 100644 --- a/sys/vdpau/h264/gstvdph264dec.c +++ b/sys/vdpau/h264/gstvdph264dec.c @@ -168,8 +168,7 @@ gst_vdp_h264_dec_calculate_poc (GstVdpH264Dec * h264_dec, GstH264Slice * slice) { GstH264Picture *pic; GstH264Sequence *seq; - - guint poc; + guint poc = 0; pic = slice->picture; seq = pic->sequence; -- cgit v1.2.3