From 1afb988256e4e19b6c7ff338d82b2d7a22293a3c Mon Sep 17 00:00:00 2001 From: George Chriss Date: Fri, 11 Oct 2013 15:13:00 +0000 Subject: [PATCH] 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 --- gst/flv/gstflvmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index b42f91e398..e1029fac91 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -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));