webvttenc: Separate cues with two line breaks instead of one.
authorBrendan Long <b.long@cablelabs.com>
Fri, 5 Jul 2013 17:20:49 +0000 (11:20 -0600)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 5 Jul 2013 17:32:43 +0000 (18:32 +0100)
See http://dev.w3.org/html5/webvtt/#syntax

https://bugzilla.gnome.org/show_bug.cgi?id=703673

gst/subenc/gstwebvttenc.c

index cdc9222..a829580 100644 (file)
@@ -131,7 +131,7 @@ gst_webvtt_enc_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
     gst_buffer_unmap (buf, &map_info);
   }
 
-  g_string_append_c (s, '\n');
+  g_string_append (s, "\n\n");
 
   buf_size = s->len;
   new_buffer = gst_buffer_new_wrapped (g_string_free (s, FALSE), buf_size);