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
df4999e3
Commit
df4999e3
authored
May 16, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compare input item pointers, no need to deref here
parent
6bbc4b99
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
modules/control/http/util.c
modules/control/http/util.c
+1
-1
src/playlist/item.c
src/playlist/item.c
+2
-2
src/playlist/search.c
src/playlist/search.c
+1
-1
src/playlist/tree.c
src/playlist/tree.c
+4
-4
No files found.
modules/control/http/util.c
View file @
df4999e3
...
...
@@ -349,7 +349,7 @@ void PlaylistListNode( intf_thread_t *p_intf, playlist_t *p_pl,
return
;
mvar_t
*
itm
=
mvar_New
(
name
,
"set"
);
if
(
p_item
->
p_input
->
i_id
==
p_node
->
p_input
->
i_id
)
if
(
p_item
->
p_input
==
p_node
->
p_input
)
mvar_AppendNewVar
(
itm
,
"current"
,
"1"
);
else
mvar_AppendNewVar
(
itm
,
"current"
,
"0"
);
...
...
src/playlist/item.c
View file @
df4999e3
...
...
@@ -481,8 +481,8 @@ int playlist_BothAddInput( playlist_t *p_playlist,
}
for
(
i_top
=
0
;
i_top
<
p_playlist
->
p_root_onelevel
->
i_children
;
i_top
++
)
{
if
(
p_playlist
->
p_root_onelevel
->
pp_children
[
i_top
]
->
p_input
->
i_id
==
p_up
->
p_input
->
i_id
)
if
(
p_playlist
->
p_root_onelevel
->
pp_children
[
i_top
]
->
p_input
==
p_up
->
p_input
)
{
AddItem
(
p_playlist
,
p_item_one
,
p_playlist
->
p_root_onelevel
->
pp_children
[
i_top
],
...
...
src/playlist/search.c
View file @
df4999e3
...
...
@@ -71,7 +71,7 @@ playlist_item_t* playlist_ItemGetByInput( playlist_t * p_playlist,
/** \todo Check if this is always incremental and whether we can bsearch */
for
(
i
=
0
;
i
<
p_playlist
->
all_items
.
i_size
;
i
++
)
{
if
(
ARRAY_VAL
(
p_playlist
->
all_items
,
i
)
->
p_input
->
i_id
==
p_item
->
i_id
)
if
(
ARRAY_VAL
(
p_playlist
->
all_items
,
i
)
->
p_input
==
p_item
)
{
return
ARRAY_VAL
(
p_playlist
->
all_items
,
i
);
}
...
...
src/playlist/tree.c
View file @
df4999e3
...
...
@@ -311,8 +311,8 @@ playlist_item_t * playlist_GetPreferredNode( playlist_t *p_playlist,
return
p_node
;
for
(
i
=
0
;
i
<
p_playlist
->
p_root_onelevel
->
i_children
;
i
++
)
{
if
(
p_playlist
->
p_root_onelevel
->
pp_children
[
i
]
->
p_input
->
i_id
==
p_node
->
p_input
->
i_id
)
if
(
p_playlist
->
p_root_onelevel
->
pp_children
[
i
]
->
p_input
==
p_node
->
p_input
)
return
p_playlist
->
p_root_onelevel
->
pp_children
[
i
];
}
}
...
...
@@ -322,8 +322,8 @@ playlist_item_t * playlist_GetPreferredNode( playlist_t *p_playlist,
return
p_node
;
for
(
i
=
0
;
i
<
p_playlist
->
p_root_category
->
i_children
;
i
++
)
{
if
(
p_playlist
->
p_root_category
->
pp_children
[
i
]
->
p_input
->
i_id
==
p_node
->
p_input
->
i_id
)
if
(
p_playlist
->
p_root_category
->
pp_children
[
i
]
->
p_input
==
p_node
->
p_input
)
return
p_playlist
->
p_root_category
->
pp_children
[
i
];
}
}
...
...
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