diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-07-15 16:17:35 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-07-15 18:28:46 +0100 |
commit | aba7cfa0643cf168d80dd5255aad58645eca47b6 (patch) | |
tree | 44754760d45b040a55a092c8c08d3ec36762f15b /sys | |
parent | fac1dbab6e19d5a79a417864f496d2be86250bbb (diff) |
vdpau: Fix a compiler warning about uninitialised variable use.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vdpau/gstvdpmpegdec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/vdpau/gstvdpmpegdec.c b/sys/vdpau/gstvdpmpegdec.c index 674146c45..c3fb324e9 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) { |