Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
5a4904ce
Commit
5a4904ce
authored
Aug 03, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/input/input_ext-plugins.c: fixed nasty segfault when pf_read() returns -1;
parent
aba56b6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/input/input_ext-plugins.c
src/input/input_ext-plugins.c
+6
-4
No files found.
src/input/input_ext-plugins.c
View file @
5a4904ce
...
...
@@ -2,7 +2,7 @@
* input_ext-plugins.c: useful functions for access and demux plug-ins
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: input_ext-plugins.c,v 1.3
5 2003/07/27 15:49:27
gbazin Exp $
* $Id: input_ext-plugins.c,v 1.3
6 2003/08/03 20:25:04
gbazin Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -520,6 +520,10 @@ ssize_t input_FillBuffer( input_thread_t * p_input )
ReleaseBuffer
(
p_input
->
p_method_data
,
p_input
->
p_data_buffer
);
}
p_input
->
p_data_buffer
=
p_buf
;
p_input
->
p_current_data
=
(
byte_t
*
)
p_buf
+
sizeof
(
data_buffer_t
);
p_input
->
p_last_data
=
p_input
->
p_current_data
+
i_remains
;
/* Do not hold the lock during pf_read (blocking call). */
vlc_mutex_unlock
(
&
p_input
->
p_method_data
->
lock
);
...
...
@@ -535,9 +539,7 @@ ssize_t input_FillBuffer( input_thread_t * p_input )
if
(
i_ret
<
0
)
i_ret
=
0
;
p_input
->
p_data_buffer
=
p_buf
;
p_input
->
p_current_data
=
(
byte_t
*
)
p_buf
+
sizeof
(
data_buffer_t
);
p_input
->
p_last_data
=
p_input
->
p_current_data
+
i_remains
+
i_ret
;
p_input
->
p_last_data
+=
i_ret
;
return
(
ssize_t
)
i_remains
+
i_ret
;
}
...
...
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