From c3d6635bbff70f9c1d5314ecb6d3d38cdccfd3ee Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Wed, 2 Mar 2016 21:46:44 +0200 Subject: 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. --- ext/mpeg2enc/gstmpeg2enc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mpeg2enc/gstmpeg2enc.cc') diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc index bff4c70b8..5c686cc3c 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: -- cgit v1.2.1