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
08addc5a
Commit
08addc5a
authored
Jun 16, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bunch of segfaults. It may be heavy handed and breaking other stuffs. zorglub to review
parent
28422e78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
src/input/input.c
src/input/input.c
+6
-3
src/misc/stats.c
src/misc/stats.c
+8
-5
No files found.
src/input/input.c
View file @
08addc5a
...
...
@@ -699,8 +699,10 @@ static int Init( input_thread_t * p_input, vlc_bool_t b_quick )
p_input
->
counters
.
p_sout_send_bitrate
=
NULL
;
p_input
->
counters
.
p_sout_sent_packets
=
NULL
;
p_input
->
counters
.
p_sout_sent_bytes
=
NULL
;
p_input
->
counters
.
p_demux_bitrate
->
update_interval
=
1000000
;
p_input
->
counters
.
p_input_bitrate
->
update_interval
=
1000000
;
if
(
p_input
->
counters
.
p_demux_bitrate
)
p_input
->
counters
.
p_demux_bitrate
->
update_interval
=
1000000
;
if
(
p_input
->
counters
.
p_input_bitrate
)
p_input
->
counters
.
p_input_bitrate
->
update_interval
=
1000000
;
vlc_mutex_init
(
p_input
,
&
p_input
->
counters
.
counters_lock
);
/* handle sout */
...
...
@@ -718,7 +720,8 @@ static int Init( input_thread_t * p_input, vlc_bool_t b_quick )
INIT_COUNTER
(
sout_sent_packets
,
INTEGER
,
COUNTER
);
INIT_COUNTER
(
sout_sent_bytes
,
INTEGER
,
COUNTER
);
INIT_COUNTER
(
sout_send_bitrate
,
FLOAT
,
DERIVATIVE
);
p_input
->
counters
.
p_sout_send_bitrate
->
update_interval
=
1000000
;
if
(
p_input
->
counters
.
p_sout_send_bitrate
)
p_input
->
counters
.
p_sout_send_bitrate
->
update_interval
=
1000000
;
}
free
(
psz
);
}
...
...
src/misc/stats.c
View file @
08addc5a
...
...
@@ -380,14 +380,17 @@ void __stats_TimersClean( vlc_object_t *p_obj )
void
stats_CounterClean
(
counter_t
*
p_c
)
{
int
i
;
for
(
i
=
p_c
->
i_samples
-
1
;
i
>=
0
;
i
--
)
if
(
p_c
)
{
counter_sample_t
*
p_s
=
p_c
->
pp_samples
[
i
];
REMOVE_ELEM
(
p_c
->
pp_samples
,
p_c
->
i_samples
,
i
);
free
(
p_s
);
}
for
(
i
=
p_c
->
i_samples
-
1
;
i
>=
0
;
i
--
)
{
counter_sample_t
*
p_s
=
p_c
->
pp_samples
[
i
];
REMOVE_ELEM
(
p_c
->
pp_samples
,
p_c
->
i_samples
,
i
);
free
(
p_s
);
}
if
(
p_c
->
psz_name
)
free
(
p_c
->
psz_name
);
free
(
p_c
);
}
}
...
...
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