From 27f40d8a577789a53e2b7bb1c762b71bc62a7c54 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 8 Aug 2011 16:44:20 +0200 Subject: [PATCH] dirac: Fix set but unused variables Remove some dead code that triggers "set but unused variables" from Gcc 4.6. Fixes #656164. Signed-off-by: David Schleef --- ext/dirac/gstdiracenc.cc | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/ext/dirac/gstdiracenc.cc b/ext/dirac/gstdiracenc.cc index 118a315279..a564af79ab 100644 --- a/ext/dirac/gstdiracenc.cc +++ b/ext/dirac/gstdiracenc.cc @@ -330,30 +330,9 @@ gst_dirac_enc_set_format (GstBaseVideoEncoder * base_video_encoder, GstVideoState * state) { GstDiracEnc *dirac_enc = GST_DIRAC_ENC (base_video_encoder); - GstCaps *caps; - GstStructure *structure; GST_DEBUG ("set_format"); - caps = - gst_pad_get_allowed_caps (GST_BASE_VIDEO_CODEC_SRC_PAD - (base_video_encoder)); - - if (caps == NULL) { - caps = - gst_caps_copy (gst_pad_get_pad_template_caps - (GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder))); - } - - if (gst_caps_is_empty (caps)) { - gst_caps_unref (caps); - return FALSE; - } - - structure = gst_caps_get_structure (caps, 0); - - gst_caps_unref (caps); - gst_base_video_encoder_set_latency_fields (base_video_encoder, 2 * 2); switch (state->format) { @@ -1245,10 +1224,6 @@ static GstFlowReturn gst_dirac_enc_shape_output (GstBaseVideoEncoder * base_video_encoder, GstVideoFrame * frame) { - GstDiracEnc *dirac_enc; - - dirac_enc = GST_DIRAC_ENC (base_video_encoder); - gst_dirac_enc_shape_output_ogg (base_video_encoder, frame); return GST_FLOW_ERROR;