flacparse: drop redundant return statement on _header_is_valid()

Fix the rather vague error message while at it.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-12-30 12:16:56 -08:00
parent 276fcc5916
commit eb47176b7c

View file

@ -627,8 +627,8 @@ gst_flac_parse_frame_header_is_valid (GstFlacParse * flacparse,
return FRAME_HEADER_VALID; return FRAME_HEADER_VALID;
need_streaminfo: need_streaminfo:
GST_ERROR_OBJECT (flacparse, "Need STREAMINFO"); GST_ERROR_OBJECT (flacparse, "Need STREAMINFO metadata. Bits per sample "
return FRAME_HEADER_INVALID; "or sample rate not in frame header");
error: error:
return FRAME_HEADER_INVALID; return FRAME_HEADER_INVALID;