data = GST_BUFFER_DATA (buffer);
size = GST_BUFFER_SIZE (buffer);
- drain = GST_BASE_PARSE_DRAINING (parse);
+ drain = FALSE;
current_off = h264parse->current_off;
GST_DEBUG_OBJECT (h264parse, "last parse position %u", current_off);
if (!h264parse->nalu.size && !h264parse->nalu.valid)
h264parse->nalu = nalu;
- if (drain) {
- GST_DEBUG_OBJECT (h264parse, "drainning NAL %u %u %u", size,
+ if (GST_BASE_PARSE_DRAINING (parse)) {
+ drain = TRUE;
+ GST_DEBUG_OBJECT (h264parse, "draining NAL %u %u %u", size,
h264parse->nalu.offset, h264parse->nalu.size);
/* Can't parse the nalu */
if (size - h264parse->nalu.offset < 2) {