diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2014-08-25 13:33:15 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2014-08-25 13:37:57 -0300 |
commit | 30a51ca54771a10e18031c93c3d206892f18b724 (patch) | |
tree | faf93cd7eb9d951e520f3dcea75df6dc97ac92c3 /tests/check/elements/h264parse.c | |
parent | ab5ec2b7bf293f94ff3f192e8e8483a87cde0b27 (diff) | |
download | gstreamer-plugins-bad-30a51ca54771a10e18031c93c3d206892f18b724.tar.gz |
h264parse: tests: fix caps for avc format
If it has a codec_data field, it should also use the stream-format=avc as
codec_data doesn't make sense otherwise and the default should
be bytestream
Diffstat (limited to 'tests/check/elements/h264parse.c')
-rw-r--r-- | tests/check/elements/h264parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/check/elements/h264parse.c b/tests/check/elements/h264parse.c index 6ee6e7539..d2515e8e7 100644 --- a/tests/check/elements/h264parse.c +++ b/tests/check/elements/h264parse.c @@ -381,7 +381,8 @@ GST_START_TEST (test_parse_packetized) cdata = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, h264_codec_data, h264_codec_data_size, 0, h264_codec_data_size, NULL, NULL); - gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, cdata, NULL); + gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, cdata, + "stream-format", G_TYPE_STRING, "avc", NULL); gst_buffer_unref (cdata); desc = gst_caps_to_string (caps); gst_caps_unref (caps); |