Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
db839544
Commit
db839544
authored
May 29, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe/xml: use writer multiple_sections instead of local context variable.
parent
2248db94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
ffprobe.c
ffprobe.c
+2
-7
No files found.
ffprobe.c
View file @
db839544
...
...
@@ -1114,7 +1114,6 @@ static const Writer json_writer = {
typedef
struct
{
const
AVClass
*
class
;
int
within_tag
;
int
multiple_entries
;
///< tells if the given chapter requires multiple entries
int
indent_level
;
int
fully_qualified
;
int
xsd_strict
;
...
...
@@ -1229,11 +1228,7 @@ static void xml_print_chapter_header(WriterContext *wctx, const char *chapter)
if
(
wctx
->
nb_chapter
)
printf
(
"
\n
"
);
xml
->
multiple_entries
=
!
strcmp
(
chapter
,
"packets"
)
||
!
strcmp
(
chapter
,
"frames"
)
||
!
strcmp
(
chapter
,
"packets_and_frames"
)
||
!
strcmp
(
chapter
,
"streams"
)
||
!
strcmp
(
chapter
,
"library_versions"
);
if
(
xml
->
multiple_entries
)
{
if
(
wctx
->
multiple_sections
)
{
XML_INDENT
();
printf
(
"<%s>
\n
"
,
chapter
);
xml
->
indent_level
++
;
}
...
...
@@ -1243,7 +1238,7 @@ static void xml_print_chapter_footer(WriterContext *wctx, const char *chapter)
{
XMLContext
*
xml
=
wctx
->
priv
;
if
(
xml
->
multiple_entrie
s
)
{
if
(
wctx
->
multiple_section
s
)
{
xml
->
indent_level
--
;
XML_INDENT
();
printf
(
"</%s>
\n
"
,
chapter
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment