summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-09-15 00:04:07 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-09-16 15:31:57 +0200
commit1639d1e150a9667e425a1c881f0f93f89a166760 (patch)
tree29f07692af2ae3383ad43a34a3d41d43719ed47a
parent35520df7c0c383540fb628fc6bf71e9b51ea19de (diff)
downloadgstreamer-plugins-good-1639d1e150a9667e425a1c881f0f93f89a166760.tar.gz
[MOVED FROM BAD 130/134] vp8enc: Correctly set profile in caps
-rw-r--r--ext/vp8/gstvp8enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c
index 47c2d78fa..e8d95cc0f 100644
--- a/ext/vp8/gstvp8enc.c
+++ b/ext/vp8/gstvp8enc.c
@@ -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;