summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivia Nikolaidou <vivia@ahiru.eu>2016-03-02 21:46:44 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-03-04 13:24:56 +0200
commit86c622531d746543117ed82e1982bab2a750736e (patch)
tree82f38f373fbefb9864dd5e4f2d66a7dac4029ce6
parentb14464947ff200406786107ec5d130baa898b3aa (diff)
downloadgstreamer-plugins-bad-86c622531d746543117ed82e1982bab2a750736e.tar.gz
mpeg2enc: Provide format as a string instead of a char to gst_structure_new
The format was provided as 'I420' instead of "I420", causing a crash.
-rw-r--r--ext/mpeg2enc/gstmpeg2enc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc
index 9e631e3d1..6e2752994 100644
--- a/ext/mpeg2enc/gstmpeg2enc.cc
+++ b/ext/mpeg2enc/gstmpeg2enc.cc
@@ -255,7 +255,7 @@ gst_mpeg2enc_structure_from_norm (GstMpeg2enc * enc, gint horiz,
GstStructure *structure;
structure = gst_structure_new ("video/x-raw",
- "format", G_TYPE_STRING, 'I420', NULL);
+ "format", G_TYPE_STRING, "I420", NULL);
switch (enc->options->norm) {
case 0: