flacparse: drop superflous else clauses

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-12-31 02:15:06 -08:00
parent 7286aae6e5
commit a086ee6192

View file

@ -813,7 +813,7 @@ gst_flac_parse_handle_frame (GstBaseParse * parse,
if (ret) {
framesize = next;
goto cleanup;
} else {
}
/* If we're at EOS and the frame was not valid, drop it! */
if (G_UNLIKELY (GST_BASE_PARSE_DRAINING (flacparse))) {
GST_WARNING_OBJECT (flacparse, "EOS");
@ -834,7 +834,6 @@ gst_flac_parse_handle_frame (GstBaseParse * parse,
result = FALSE;
goto cleanup;
}
}
} else {
GstByteReader reader;
gint off;
@ -849,13 +848,13 @@ gst_flac_parse_handle_frame (GstBaseParse * parse,
*skipsize = off;
result = FALSE;
goto cleanup;
} else {
}
GST_DEBUG_OBJECT (flacparse, "Sync code not found");
*skipsize = map.size - 3;
result = FALSE;
goto cleanup;
}
}
result = FALSE;
@ -1708,11 +1707,10 @@ gst_flac_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
if (GST_PAD_IS_FLUSHING (GST_BASE_PARSE_SRC_PAD (parse))) {
GST_INFO_OBJECT (parse, "Src pad is flushing");
return GST_FLOW_FLUSHING;
} else {
}
GST_INFO_OBJECT (parse, "Src pad is not negotiated!");
return GST_FLOW_NOT_NEGOTIATED;
}
}
gst_pb_utils_add_codec_description_to_tag_list (flacparse->tags,
GST_TAG_AUDIO_CODEC, caps);
gst_caps_unref (caps);