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
3ebf4f30
Commit
3ebf4f30
authored
Jul 08, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some crashes
parent
87e02f76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+16
-4
src/misc/stats.c
src/misc/stats.c
+2
-2
No files found.
modules/stream_out/transcode.c
View file @
3ebf4f30
...
...
@@ -1419,12 +1419,18 @@ static int transcode_audio_process( sout_stream_t *p_stream,
block_t
*
p_block
,
*
p_audio_block
;
int
i
;
*
out
=
NULL
;
input_thread_t
*
p_input
=
NULL
;
if
(
p_stream
->
p_parent
->
p_parent
&&
p_stream
->
p_parent
->
p_parent
->
i_object_type
==
VLC_OBJECT_INPUT
)
p_input
=
(
input_thread_t
*
)
p_stream
->
p_parent
->
p_parent
;
while
(
(
p_audio_buf
=
id
->
p_decoder
->
pf_decode_audio
(
id
->
p_decoder
,
&
in
))
)
{
stats_UpdateInteger
(
p_stream
->
p_parent
->
p_parent
,
STATS_DECODED_AUDIO
,
1
,
NULL
);
if
(
p_input
)
stats_UpdateInteger
(
p_input
,
p_input
->
counters
.
p_decoded_audio
,
1
,
NULL
);
if
(
p_sys
->
b_master_sync
)
{
mtime_t
i_dts
=
date_Get
(
&
id
->
interpolated_pts
)
+
1
;
...
...
@@ -2006,12 +2012,18 @@ static int transcode_video_process( sout_stream_t *p_stream,
int
i_duplicate
=
1
,
i
;
picture_t
*
p_pic
,
*
p_pic2
=
NULL
;
*
out
=
NULL
;
input_thread_t
*
p_input
=
NULL
;
if
(
p_stream
->
p_parent
->
p_parent
&&
p_stream
->
p_parent
->
p_parent
->
i_object_type
==
VLC_OBJECT_INPUT
)
p_input
=
(
input_thread_t
*
)
p_stream
->
p_parent
->
p_parent
;
while
(
(
p_pic
=
id
->
p_decoder
->
pf_decode_video
(
id
->
p_decoder
,
&
in
))
)
{
subpicture_t
*
p_subpic
=
0
;
stats_UpdateInteger
(
p_stream
->
p_parent
->
p_parent
,
STATS_DECODED_VIDEO
,
1
,
NULL
);
if
(
p_input
)
stats_UpdateInteger
(
p_input
,
p_input
->
counters
.
p_decoded_video
,
1
,
NULL
);
if
(
p_stream
->
p_sout
->
i_out_pace_nocontrol
&&
p_sys
->
b_hurry_up
)
{
...
...
src/misc/stats.c
View file @
3ebf4f30
...
...
@@ -81,7 +81,7 @@ counter_t * __stats_CounterCreate( vlc_object_t *p_this,
int
__stats_Update
(
vlc_object_t
*
p_this
,
counter_t
*
p_counter
,
vlc_value_t
val
,
vlc_value_t
*
val_new
)
{
if
(
!
p_this
->
p_libvlc
->
b_stats
)
return
VLC_EGENERIC
;
if
(
!
p_this
->
p_libvlc
->
b_stats
||
!
p_counter
)
return
VLC_EGENERIC
;
return
CounterUpdate
(
p_this
,
p_counter
,
val
,
val_new
);
}
...
...
@@ -94,7 +94,7 @@ int __stats_Update( vlc_object_t *p_this, counter_t *p_counter,
*/
int
__stats_Get
(
vlc_object_t
*
p_this
,
counter_t
*
p_counter
,
vlc_value_t
*
val
)
{
if
(
!
p_this
->
p_libvlc
->
b_stats
||
p_counter
->
i_samples
==
0
)
if
(
!
p_this
->
p_libvlc
->
b_stats
||
!
p_counter
||
p_counter
->
i_samples
==
0
)
{
val
->
i_int
=
val
->
f_float
=
0
.
0
;
return
VLC_EGENERIC
;
...
...
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