summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-07-15 16:17:35 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-07-15 18:28:46 +0100
commitaba7cfa0643cf168d80dd5255aad58645eca47b6 (patch)
tree44754760d45b040a55a092c8c08d3ec36762f15b
parentfac1dbab6e19d5a79a417864f496d2be86250bbb (diff)
vdpau: Fix a compiler warning about uninitialised variable use.
-rw-r--r--sys/vdpau/gstvdpmpegdec.c5
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) {