From aba7cfa0643cf168d80dd5255aad58645eca47b6 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 15 Jul 2009 16:17:35 +0100 Subject: vdpau: Fix a compiler warning about uninitialised variable use. --- sys/vdpau/gstvdpmpegdec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/vdpau/gstvdpmpegdec.c') diff --git a/sys/vdpau/gstvdpmpegdec.c b/sys/vdpau/gstvdpmpegdec.c index 674146c4..c3fb324e 100644 --- a/sys/vdpau/gstvdpmpegdec.c +++ b/sys/vdpau/gstvdpmpegdec.c @@ -172,7 +172,8 @@ gst_vdp_mpeg_dec_set_caps (GstPad * pad, GstCaps * caps) gboolean res; const GValue *value; - VdpDecoderProfile profile; + /* Default to MPEG1 until we find otherwise */ + VdpDecoderProfile profile = VDP_DECODER_PROFILE_MPEG1; GstVdpDevice *device; VdpStatus status; @@ -210,8 +211,6 @@ gst_vdp_mpeg_dec_set_caps (GstPad * pad, GstCaps * caps) /* parse caps to setup decoder */ gst_structure_get_int (structure, "mpegversion", &mpeg_dec->version); - if (mpeg_dec->version == 1) - profile = VDP_DECODER_PROFILE_MPEG1; value = gst_structure_get_value (structure, "codec_data"); if (value) { -- cgit v1.2.1