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
f4e4e5b8
Commit
f4e4e5b8
authored
Jan 23, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/segment: drop now pointless segment_list_close() function
parent
ca68acd7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
segment.c
libavformat/segment.c
+3
-9
No files found.
libavformat/segment.c
View file @
f4e4e5b8
...
...
@@ -230,12 +230,6 @@ static int segment_list_open(AVFormatContext *s)
return
ret
;
}
static
void
segment_list_close
(
AVFormatContext
*
s
)
{
SegmentContext
*
seg
=
s
->
priv_data
;
avio_close
(
seg
->
list_pb
);
}
static
void
segment_list_print_entry
(
AVIOContext
*
list_ioctx
,
ListType
list_type
,
const
SegmentListEntry
*
list_entry
)
...
...
@@ -295,7 +289,7 @@ static int segment_end(AVFormatContext *s, int write_trailer, int is_last)
av_freep
(
&
entry
);
}
segment_list_close
(
s
);
avio_close
(
seg
->
list_pb
);
if
((
ret
=
segment_list_open
(
s
))
<
0
)
goto
end
;
for
(
entry
=
seg
->
segment_list_entries
;
entry
;
entry
=
entry
->
next
)
...
...
@@ -627,7 +621,7 @@ static int seg_write_header(AVFormatContext *s)
fail:
if
(
ret
)
{
if
(
seg
->
list
)
segment_list_close
(
s
);
avio_close
(
seg
->
list_pb
);
if
(
seg
->
avf
)
avformat_free_context
(
seg
->
avf
);
}
...
...
@@ -739,7 +733,7 @@ static int seg_write_trailer(struct AVFormatContext *s)
}
fail:
if
(
seg
->
list
)
segment_list_close
(
s
);
avio_close
(
seg
->
list_pb
);
av_opt_free
(
seg
);
av_freep
(
&
seg
->
times
);
...
...
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