flvmux: Make the element count in arrays not include end

One-line removal of tags_written++

This should fix rtmp output to crtmpserver, and hopefully
noone is expecting that the element count includes the end
element, as different bits of documentation say different
things about whether it should or not.

https://bugzilla.gnome.org/show_bug.cgi?id=661624
This commit is contained in:
George Chriss 2013-10-11 15:13:00 +00:00 committed by Jan Schmidt
parent db2967125b
commit 1afb988256

View file

@ -1008,7 +1008,7 @@ end:
data[1] = 0;
data[2] = 9; /* end marker */
script_tag = gst_buffer_append (script_tag, tmp);
tags_written++;
_gst_buffer_new_and_alloc (4, &tmp, &data);
GST_WRITE_UINT32_BE (data, gst_buffer_get_size (script_tag));