Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
d01611b8
Commit
d01611b8
authored
Jun 14, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the playlist a generic object
parent
378b00a0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
modules/misc/lua/objects.c
modules/misc/lua/objects.c
+0
-1
src/input/control.c
src/input/control.c
+5
-7
src/input/es_out.c
src/input/es_out.c
+3
-4
src/playlist/engine.c
src/playlist/engine.c
+1
-1
No files found.
modules/misc/lua/objects.c
View file @
d01611b8
...
...
@@ -110,7 +110,6 @@ static int vlc_object_type_from_string( const char *psz_name )
{
{
VLC_OBJECT_LIBVLC
,
"libvlc"
},
{
VLC_OBJECT_MODULE
,
"module"
},
{
VLC_OBJECT_INTF
,
"intf"
},
{
VLC_OBJECT_PLAYLIST
,
"playlist"
},
{
VLC_OBJECT_INPUT
,
"input"
},
{
VLC_OBJECT_DECODER
,
"decoder"
},
{
VLC_OBJECT_VOUT
,
"vout"
},
...
...
src/input/control.c
View file @
d01611b8
...
...
@@ -615,13 +615,11 @@ static void NotifyPlaylist( input_thread_t *p_input )
/* FIXME: We need to avoid that dependency on the playlist
* because it is a circular dependency:
* ( playlist -> input -> playlist ) */
playlist_t
*
p_playlist
=
vlc_object_find
(
p_input
,
VLC_OBJECT_PLAYLIST
,
FIND_PARENT
);
if
(
!
p_playlist
)
return
;
var_SetInteger
(
p_playlist
,
"item-change"
,
p_input
->
p
->
input
.
p_item
->
i_id
);
vlc_object_release
(
p_playlist
);
playlist_t
*
p_playlist
=
pl_Yield
(
p_input
);
if
(
VLC_OBJECT
(
p_playlist
)
==
p_input
->
p_parent
)
var_SetInteger
(
p_playlist
,
"item-change"
,
p_input
->
p
->
input
.
p_item
->
i_id
);
pl_Release
(
p_input
);
}
static
void
UpdateBookmarksOption
(
input_thread_t
*
p_input
)
...
...
src/input/es_out.c
View file @
d01611b8
...
...
@@ -1690,16 +1690,15 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
}
{
/* FIXME: we don't want to depend on the playlist */
playlist_t
*
p_playlist
=
vlc_object_find
(
p_sys
->
p_input
,
VLC_OBJECT_PLAYLIST
,
FIND_PARENT
);
if
(
p_playlist
)
playlist_t
*
p_playlist
=
pl_Yield
(
p_sys
->
p_input
);
if
(
VLC_OBJECT
(
p_playlist
)
==
p_sys
->
p_input
)
{
PL_LOCK
;
p_playlist
->
gc_date
=
mdate
();
vlc_object_signal_unlocked
(
p_playlist
);
PL_UNLOCK
;
vlc_object_release
(
p_playlist
);
}
pl_Release
(
p_sys
->
p_input
);
}
return
VLC_SUCCESS
;
...
...
src/playlist/engine.c
View file @
d01611b8
...
...
@@ -66,7 +66,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
/* Allocate structure */
p_playlist
=
vlc_custom_create
(
p_parent
,
sizeof
(
*
p_playlist
),
VLC_OBJECT_
PLAYLIST
,
playlist_name
);
VLC_OBJECT_
GENERIC
,
playlist_name
);
if
(
!
p_playlist
)
{
msg_Err
(
p_parent
,
"out of memory"
);
...
...
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