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
3b0885e5
Commit
3b0885e5
authored
May 25, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sanity checks
parent
7c4a54f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/playlist/item.c
src/playlist/item.c
+4
-7
No files found.
src/playlist/item.c
View file @
3b0885e5
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
*****************************************************************************/
*****************************************************************************/
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
#include <vlc/input.h>
#include <assert.h>
#include "vlc_playlist.h"
#include "vlc_playlist.h"
void
AddItem
(
playlist_t
*
p_playlist
,
playlist_item_t
*
p_item
,
void
AddItem
(
playlist_t
*
p_playlist
,
playlist_item_t
*
p_item
,
...
@@ -267,6 +267,7 @@ int playlist_BothAddInput( playlist_t *p_playlist,
...
@@ -267,6 +267,7 @@ int playlist_BothAddInput( playlist_t *p_playlist,
{
{
playlist_item_t
*
p_item
,
*
p_up
;
playlist_item_t
*
p_item
,
*
p_up
;
int
i_top
;
int
i_top
;
assert
(
p_input
);
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
/* Add to category */
/* Add to category */
...
@@ -338,12 +339,8 @@ playlist_item_t * playlist_NodeAddInput( playlist_t *p_playlist,
...
@@ -338,12 +339,8 @@ playlist_item_t * playlist_NodeAddInput( playlist_t *p_playlist,
int
i_mode
,
int
i_pos
)
int
i_mode
,
int
i_pos
)
{
{
playlist_item_t
*
p_item
;
playlist_item_t
*
p_item
;
assert
(
p_input
);
/* Sanity checks */
assert
(
p_parent
&&
p_parent
->
i_children
!=
-
1
);
if
(
!
p_parent
||
p_parent
->
i_children
==
-
1
)
{
msg_Err
(
p_playlist
,
"invalid node"
);
}
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
vlc_mutex_lock
(
&
p_playlist
->
object_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