mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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.
This commit is contained in:
parent
d87177b69b
commit
c3d6635bbf
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue