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
94b463ab
Commit
94b463ab
authored
Feb 09, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist does not need a destructor
parent
3863d8b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
19 deletions
+9
-19
src/playlist/engine.c
src/playlist/engine.c
+9
-19
No files found.
src/playlist/engine.c
View file @
94b463ab
...
...
@@ -38,7 +38,6 @@
* Local prototypes
*****************************************************************************/
static
void
VariablesInit
(
playlist_t
*
p_playlist
);
static
void
playlist_Destructor
(
vlc_object_t
*
p_this
);
static
int
RandomCallback
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
a
)
...
...
@@ -174,11 +173,16 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
pl_priv
(
p_playlist
)
->
b_auto_preparse
=
b_auto_preparse
;
}
vlc_object_set_destructor
(
p_playlist
,
playlist_Destructor
);
return
p_playlist
;
}
/**
* Destroy playlist.
* This is not thread-safe. Any reference to the playlist is assumed gone.
* (In particular, all interface and services threads must have been joined).
*
* \param p_playlist the playlist object
*/
void
playlist_Destroy
(
playlist_t
*
p_playlist
)
{
playlist_private_t
*
p_sys
=
pl_priv
(
p_playlist
);
...
...
@@ -188,22 +192,8 @@ void playlist_Destroy( playlist_t *p_playlist )
playlist_preparser_Delete
(
p_sys
->
p_preparser
);
if
(
p_sys
->
p_fetcher
)
playlist_fetcher_Delete
(
p_sys
->
p_fetcher
);
vlc_object_release
(
p_playlist
);
}
/**
* Destroy playlist
*
* Destroy a playlist structure.
* \param p_playlist the playlist object
* \return nothing
*/
static
void
playlist_Destructor
(
vlc_object_t
*
p_this
)
{
playlist_t
*
p_playlist
=
(
playlist_t
*
)
p_this
;
playlist_private_t
*
p_sys
=
pl_priv
(
p_playlist
);
/* Already cleared when deactivating (if activated anyway) */
assert
(
!
p_sys
->
p_input
);
assert
(
!
p_sys
->
p_input_resource
);
...
...
@@ -227,7 +217,7 @@ static void playlist_Destructor( vlc_object_t * p_this )
ARRAY_RESET
(
p_playlist
->
items
);
ARRAY_RESET
(
p_playlist
->
current
);
msg_Dbg
(
p_this
,
"Destroyed"
);
vlc_object_release
(
p_playlist
);
}
/** Get current playing input.
...
...
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