vtenc: add alignment=au to sink caps
authorIlya Konstantinov <ilya.konstantinov@gmail.com>
Tue, 9 Jun 2015 21:16:27 +0000 (00:16 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 10 Jun 2015 08:20:44 +0000 (10:20 +0200)
VT compression callback gets a CMSampleBuffer per frame, so vtenc_h264
should set 'alignment=au' in sink caps to indicate this.

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

sys/applemedia/vtenc.c

index 100db54293350b91eb53e37afabcf4029e0c783c..5c926ab3882dc85c3a653ae4893f2466cb03df0e 100644 (file)
@@ -174,7 +174,8 @@ gst_vtenc_base_init (GstVTEncClass * klass)
       min_fps_n, min_fps_d, max_fps_n, max_fps_d, NULL);
   if (codec_details->format_id == kCMVideoCodecType_H264) {
     gst_structure_set (gst_caps_get_structure (src_caps, 0),
-        "stream-format", G_TYPE_STRING, "avc", NULL);
+        "stream-format", G_TYPE_STRING, "avc",
+        "alignment", G_TYPE_STRING, "au", NULL);
   }
   src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
       src_caps);