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
63db764f
Commit
63db764f
authored
Jun 08, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix vout/sout garbage collection and input spam debug messages
parent
a2dbfd13
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
include/vlc_playlist.h
include/vlc_playlist.h
+3
-0
src/playlist/engine.c
src/playlist/engine.c
+13
-10
No files found.
include/vlc_playlist.h
View file @
63db764f
...
...
@@ -142,6 +142,9 @@ struct playlist_t
services_discovery_t
**
pp_sds
;
int
i_sds
;
mtime_t
i_vout_destroyed_date
;
mtime_t
i_sout_destroyed_date
;
struct
{
/* Current status. These fields are readonly, only the playlist
* main loop can touch it*/
...
...
src/playlist/engine.c
View file @
63db764f
...
...
@@ -60,6 +60,9 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
p_playlist
->
i_last_input_id
=
0
;
p_playlist
->
p_input
=
NULL
;
p_playlist
->
i_vout_destroyed_date
=
0
;
p_playlist
->
i_sout_destroyed_date
=
0
;
p_playlist
->
i_size
=
0
;
p_playlist
->
pp_items
=
NULL
;
p_playlist
->
i_all_size
=
0
;
...
...
@@ -181,8 +184,6 @@ void playlist_MainLoop( playlist_t *p_playlist )
{
playlist_item_t
*
p_item
=
NULL
;
mtime_t
i_vout_destroyed_date
=
0
;
mtime_t
i_sout_destroyed_date
=
0
;
PL_LOCK
...
...
@@ -190,6 +191,8 @@ void playlist_MainLoop( playlist_t *p_playlist )
/* FIXME : this can be called several times */
if
(
p_playlist
->
request
.
b_request
)
{
if
(
p_playlist
->
request
.
i_status
==
PLAYLIST_STOPPED
)
p_playlist
->
request
.
b_request
=
VLC_FALSE
;
PL_DEBUG
(
"incoming request - stopping current input"
);
/* Stop the existing input */
if
(
p_playlist
->
p_input
)
...
...
@@ -224,8 +227,8 @@ void playlist_MainLoop( playlist_t *p_playlist )
/* Destroy object */
vlc_object_destroy
(
p_input
);
i_vout_destroyed_date
=
0
;
i_sout_destroyed_date
=
0
;
p_playlist
->
i_vout_destroyed_date
=
0
;
p_playlist
->
i_sout_destroyed_date
=
0
;
if
(
p_playlist
->
status
.
p_item
->
i_flags
&
PLAYLIST_REMOVE_FLAG
)
...
...
@@ -259,12 +262,12 @@ void playlist_MainLoop( playlist_t *p_playlist )
else
if
(
p_playlist
->
p_input
->
i_state
!=
INIT_S
)
{
PL_UNLOCK
i_vout_destroyed_date
=
p_playlist
->
i_vout_destroyed_date
=
ObjectGarbageCollector
(
p_playlist
,
VLC_OBJECT_VOUT
,
i_vout_destroyed_date
);
i_sout_destroyed_date
=
p_playlist
->
i_vout_destroyed_date
);
p_playlist
->
i_sout_destroyed_date
=
ObjectGarbageCollector
(
p_playlist
,
VLC_OBJECT_SOUT
,
i_sout_destroyed_date
);
p_playlist
->
i_sout_destroyed_date
);
PL_LOCK
}
}
...
...
@@ -307,9 +310,9 @@ void playlist_MainLoop( playlist_t *p_playlist )
/* Collect garbage */
PL_UNLOCK
i_sout_destroyed_date
=
p_playlist
->
i_sout_destroyed_date
=
ObjectGarbageCollector
(
p_playlist
,
VLC_OBJECT_SOUT
,
mdate
()
);
i_vout_destroyed_date
=
p_playlist
->
i_vout_destroyed_date
=
ObjectGarbageCollector
(
p_playlist
,
VLC_OBJECT_VOUT
,
mdate
()
);
PL_LOCK
}
...
...
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