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
929a9b75
Commit
929a9b75
authored
May 30, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log some errors
Originally committed as revision 13544 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
58bd615f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
ffserver.c
ffserver.c
+10
-3
No files found.
ffserver.c
View file @
929a9b75
...
...
@@ -2031,8 +2031,10 @@ static int http_prepare_data(HTTPContext *c)
c
->
fmt_ctx
.
pb
->
is_streamed
=
1
;
av_set_parameters
(
&
c
->
fmt_ctx
,
NULL
);
if
(
av_write_header
(
&
c
->
fmt_ctx
)
<
0
)
if
(
av_write_header
(
&
c
->
fmt_ctx
)
<
0
)
{
http_log
(
"Error writing output header
\n
"
);
return
-
1
;
}
len
=
url_close_dyn_buf
(
c
->
fmt_ctx
.
pb
,
&
c
->
pb_buffer
);
c
->
buffer_ptr
=
c
->
pb_buffer
;
...
...
@@ -2349,8 +2351,10 @@ static int http_start_receive_data(HTTPContext *c)
/* open feed */
fd
=
open
(
c
->
stream
->
feed_filename
,
O_RDWR
);
if
(
fd
<
0
)
if
(
fd
<
0
)
{
http_log
(
"Error opening feeder file: %s
\n
"
,
strerror
(
errno
));
return
-
1
;
}
c
->
feed_fd
=
fd
;
c
->
stream
->
feed_write_index
=
ffm_read_write_index
(
fd
);
...
...
@@ -2404,7 +2408,10 @@ static int http_receive_data(HTTPContext *c)
// printf("writing pos=0x%"PRIx64" size=0x%"PRIx64"\n", feed->feed_write_index, feed->feed_size);
/* XXX: use llseek or url_seek */
lseek
(
c
->
feed_fd
,
feed
->
feed_write_index
,
SEEK_SET
);
write
(
c
->
feed_fd
,
c
->
buffer
,
FFM_PACKET_SIZE
);
if
(
write
(
c
->
feed_fd
,
c
->
buffer
,
FFM_PACKET_SIZE
)
<
0
)
{
http_log
(
"Error writing to feed file: %s
\n
"
,
strerror
(
errno
));
goto
fail
;
}
feed
->
feed_write_index
+=
FFM_PACKET_SIZE
;
/* update file size */
...
...
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