mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-18 04:18:20 +00:00
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 <ds@schleef.org>
This commit is contained in:
parent
8dc9551f9a
commit
27f40d8a57
|
@ -330,30 +330,9 @@ gst_dirac_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
|
||||||
GstVideoState * state)
|
GstVideoState * state)
|
||||||
{
|
{
|
||||||
GstDiracEnc *dirac_enc = GST_DIRAC_ENC (base_video_encoder);
|
GstDiracEnc *dirac_enc = GST_DIRAC_ENC (base_video_encoder);
|
||||||
GstCaps *caps;
|
|
||||||
GstStructure *structure;
|
|
||||||
|
|
||||||
GST_DEBUG ("set_format");
|
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);
|
gst_base_video_encoder_set_latency_fields (base_video_encoder, 2 * 2);
|
||||||
|
|
||||||
switch (state->format) {
|
switch (state->format) {
|
||||||
|
@ -1245,10 +1224,6 @@ static GstFlowReturn
|
||||||
gst_dirac_enc_shape_output (GstBaseVideoEncoder * base_video_encoder,
|
gst_dirac_enc_shape_output (GstBaseVideoEncoder * base_video_encoder,
|
||||||
GstVideoFrame * frame)
|
GstVideoFrame * frame)
|
||||||
{
|
{
|
||||||
GstDiracEnc *dirac_enc;
|
|
||||||
|
|
||||||
dirac_enc = GST_DIRAC_ENC (base_video_encoder);
|
|
||||||
|
|
||||||
gst_dirac_enc_shape_output_ogg (base_video_encoder, frame);
|
gst_dirac_enc_shape_output_ogg (base_video_encoder, frame);
|
||||||
|
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
|
|
Loading…
Reference in a new issue