History

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.

James Almer committed 5 years ago

Commit 022e50c1 parent cdbf2fc1 file · +3 −3Browse files

Unified · Split

fftools/ffprobe.c+3−3
@@ -1682,9 +1682,9 @@ static void xml_print_section_header(WriterContext *wctx) · 1681 unmodified lines
1682 wctx->section[wctx->level-1] : NULL;1682 wctx->section[wctx->level-1] : NULL;
1683 1683
1684 if (wctx->level == 0) {1684 if (wctx->level == 0) {
1685 const char *qual = " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' "1685 const char *qual = " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
1686 "xmlns:ffprobe='http://www.ffmpeg.org/schema/ffprobe' "1686 "xmlns:ffprobe=\"http://www.ffmpeg.org/schema/ffprobe\" "
1687 "xsi:schemaLocation='http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd'";1687 "xsi:schemaLocation=\"http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd\"";
1688 1688
1689 printf("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");1689 printf("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
1690 printf("<%sffprobe%s>\n",1690 printf("<%sffprobe%s>\n",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t