Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
1cd51bdf
Commit
1cd51bdf
authored
May 16, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialise input memory
parent
d3635fbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
21 deletions
+3
-21
src/input/input.c
src/input/input.c
+3
-21
No files found.
src/input/input.c
View file @
1cd51bdf
...
...
@@ -153,6 +153,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
STATS_TIMER_INPUT_LAUNCHING
);
MALLOC_NULL
(
p_input
->
p
,
input_thread_private_t
);
memset
(
p_input
->
p
,
0
,
sizeof
(
input_thread_private_t
)
);
/* One "randomly" selected input thread is responsible for computing
* the global stats. Check if there is already someone doing this */
...
...
@@ -2179,27 +2180,8 @@ static void UpdateItemLength( input_thread_t *p_input, int64_t i_length )
static
input_source_t
*
InputSourceNew
(
input_thread_t
*
p_input
)
{
input_source_t
*
in
=
(
input_source_t
*
)
malloc
(
sizeof
(
input_source_t
)
);
if
(
!
in
)
{
msg_Err
(
p_input
,
"out of memory for new input source"
);
return
NULL
;
}
in
->
p_item
=
NULL
;
in
->
p_access
=
NULL
;
in
->
p_stream
=
NULL
;
in
->
p_demux
=
NULL
;
in
->
b_title_demux
=
false
;
TAB_INIT
(
in
->
i_title
,
in
->
title
);
in
->
b_can_pause
=
true
;
in
->
b_can_pace_control
=
true
;
in
->
b_can_rate_control
=
true
;
in
->
b_rescale_ts
=
true
;
in
->
b_eof
=
false
;
in
->
f_fps
=
0
.
0
;
in
->
i_cr_average
=
0
;
if
(
in
)
memset
(
in
,
0
,
sizeof
(
input_source_t
)
);
return
in
;
}
...
...
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