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
dbce11f1
Commit
dbce11f1
authored
Jul 22, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directory: assert() at critical places.
parent
c05833cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/access/directory.c
modules/access/directory.c
+4
-1
No files found.
modules/access/directory.c
View file @
dbce11f1
...
...
@@ -30,6 +30,7 @@
# include "config.h"
#endif
#include <assert.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#warning playlist code must not be used here.
...
...
@@ -255,6 +256,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len)
p_current
->
p_input
->
i_type
=
ITEM_TYPE_DIRECTORY
;
p_item_in_category
=
playlist_ItemToNode
(
p_playlist
,
p_current
,
pl_Unlocked
);
assert
(
p_item_in_category
);
ReadDir
(
p_access
,
p_playlist
,
psz_name
,
i_mode
,
p_item_in_category
,
...
...
@@ -493,7 +495,7 @@ static int ReadDir( access_t *p_access, playlist_t *p_playlist,
p_parent_category
,
PLAYLIST_NO_REBUILD
,
NULL
);
PL_UNLOCK
;
assert
(
p_node
);
/* If we had the parent in category, the it is now node.
* Else, we still don't have */
i_return
=
ReadDir
(
p_access
,
p_playlist
,
psz_uri
,
MODE_EXPAND
,
...
...
@@ -535,6 +537,7 @@ static int ReadDir( access_t *p_access, playlist_t *p_playlist,
{
if
(
p_current_input
)
input_ItemCopyOptions
(
p_current_input
,
p_input
);
assert
(
p_parent_category
);
int
i_ret
=
playlist_BothAddInput
(
p_playlist
,
p_input
,
p_parent_category
,
PLAYLIST_APPEND
|
PLAYLIST_PREPARSE
|
...
...
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