h264parse: Don't unref buffer that was unreffed just a few lines before already

This commit is contained in:
Sebastian Dröge 2015-04-15 21:07:35 +02:00
parent 12ffc7f5e4
commit 9b50a12b52

View file

@ -887,7 +887,6 @@ gst_h264_parse_handle_frame_packetized (GstBaseParse * parse,
if (h264parse->split_packetized) { if (h264parse->split_packetized) {
GST_ELEMENT_ERROR (h264parse, STREAM, FAILED, (NULL), GST_ELEMENT_ERROR (h264parse, STREAM, FAILED, (NULL),
("invalid AVC input data")); ("invalid AVC input data"));
gst_buffer_unref (buffer);
return GST_FLOW_ERROR; return GST_FLOW_ERROR;
} else { } else {