Commit dfa2f495 authored by HoonHee Lee's avatar HoonHee Lee Committed by Sebastian Dröge

audio/videodecoder: Minor cleanup of last commit

https://bugzilla.gnome.org/show_bug.cgi?id=761218
parent 15df3c81
......@@ -1960,13 +1960,11 @@ gst_audio_decoder_negotiate_default_caps (GstAudioDecoder * dec)
templcaps = gst_pad_get_pad_template_caps (dec->srcpad);
caps = gst_pad_peer_query_caps (dec->srcpad, templcaps);
if (caps) {
if (caps)
gst_caps_unref (templcaps);
templcaps = NULL;
} else {
else
caps = templcaps;
templcaps = NULL;
}
templcaps = NULL;
if (!caps || gst_caps_is_empty (caps) || gst_caps_is_any (caps))
goto caps_error;
......
......@@ -1098,13 +1098,11 @@ gst_video_decoder_negotiate_default_caps (GstVideoDecoder * decoder)
templcaps = gst_pad_get_pad_template_caps (decoder->srcpad);
caps = gst_pad_peer_query_caps (decoder->srcpad, templcaps);
if (caps) {
if (caps)
gst_caps_unref (templcaps);
templcaps = NULL;
} else {
else
caps = templcaps;
templcaps = NULL;
}
templcaps = NULL;
if (!caps || gst_caps_is_empty (caps) || gst_caps_is_any (caps))
goto caps_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment