mirror of https://git.ffmpeg.org/ffmpeg.git
ffprobe: use quotation marks in the xml header output
xmllint (silently) replaces the ' with " when fixing and validating the output of ffprobe in fate-ffprobe_xsd. Reviewed-by: Tobias Rapp <t.rapp@noa-archive.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
cdbf2fc3e4
commit
022e50c002
|
@ -1682,9 +1682,9 @@ static void xml_print_section_header(WriterContext *wctx)
|
||||||
wctx->section[wctx->level-1] : NULL;
|
wctx->section[wctx->level-1] : NULL;
|
||||||
|
|
||||||
if (wctx->level == 0) {
|
if (wctx->level == 0) {
|
||||||
const char *qual = " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' "
|
const char *qual = " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
|
||||||
"xmlns:ffprobe='http://www.ffmpeg.org/schema/ffprobe' "
|
"xmlns:ffprobe=\"http://www.ffmpeg.org/schema/ffprobe\" "
|
||||||
"xsi:schemaLocation='http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd'";
|
"xsi:schemaLocation=\"http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd\"";
|
||||||
|
|
||||||
printf("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
|
printf("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
|
||||||
printf("<%sffprobe%s>\n",
|
printf("<%sffprobe%s>\n",
|
||||||
|
|
Loading…
Reference in New Issue