[MOVED FROM BAD 130/134] vp8enc: Correctly set profile in caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 14 Sep 2012 22:04:07 +0000 (00:04 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 16 Sep 2012 13:31:57 +0000 (15:31 +0200)
ext/vp8/gstvp8enc.c

index 47c2d78..e8d95cc 100644 (file)
@@ -1477,7 +1477,8 @@ gst_vp8_enc_set_format (GstVideoEncoder * video_encoder,
   image->stride[VPX_PLANE_U] = GST_VIDEO_INFO_COMP_STRIDE (info, 1);
   image->stride[VPX_PLANE_V] = GST_VIDEO_INFO_COMP_STRIDE (info, 2);
 
-  caps = gst_caps_new_empty_simple ("video/x-vp8");
+  caps = gst_caps_new_simple ("video/x-vp8",
+      "profile", G_TYPE_INT, encoder->profile, NULL);
   {
     GstStructure *s;
     GstBuffer *stream_hdr, *vorbiscomment;