mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
schroedinger: Fix set but unused variables
Remove some dead code that triggers "set but unused variables" from Gcc 4.6. Fixes #656166 Signed-off-by: David Schleef <ds@schleef.org>
This commit is contained in:
parent
27f40d8a57
commit
04b74947ad
1 changed files with 0 additions and 19 deletions
|
@ -241,28 +241,9 @@ static gboolean
|
|||
gst_schro_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
|
||||
GstVideoState * state)
|
||||
{
|
||||
GstCaps *caps;
|
||||
GstStructure *structure;
|
||||
GstSchroEnc *schro_enc = GST_SCHRO_ENC (base_video_encoder);
|
||||
|
||||
GST_DEBUG ("set_output_caps");
|
||||
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 * (int) schro_encoder_setting_get_double (schro_enc->encoder,
|
||||
|
|
Loading…
Reference in a new issue