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
1f4bd81b
Commit
1f4bd81b
authored
Jul 12, 2011
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ML: warnings cleanups
parent
7dc37abe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
modules/media_library/sql_media_library.c
modules/media_library/sql_media_library.c
+5
-9
No files found.
modules/media_library/sql_media_library.c
View file @
1f4bd81b
...
...
@@ -52,9 +52,8 @@ static const char* ppsz_VideoExtensions[] = { EXTENSIONS_VIDEO_CSV, NULL };
static
int
load
(
vlc_object_t
*
);
static
void
unload
(
vlc_object_t
*
);
static
int
CreateInputItemFromMedia
(
media_library_t
*
p_ml
,
input_item_t
**
pp_item
,
ml_media_t
*
p_media
);
static
int
CreateInputItemFromMedia
(
input_item_t
**
pp_item
,
ml_media_t
*
p_media
);
struct
ml_table_elt
...
...
@@ -1176,7 +1175,7 @@ input_item_t* GetInputItemFromMedia( media_library_t *p_ml, int i_media )
ml_media_t
*
p_media
=
media_New
(
p_ml
,
i_media
,
ML_MEDIA
,
true
);
if
(
p_media
==
NULL
)
return
NULL
;
CreateInputItemFromMedia
(
p_ml
,
&
p_item
,
p_media
);
CreateInputItemFromMedia
(
&
p_item
,
p_media
);
watch_add_Item
(
p_ml
,
p_item
,
p_media
);
ml_gc_decref
(
p_media
);
}
...
...
@@ -1349,16 +1348,13 @@ void CopyMediaToInputItem( input_item_t *p_item, ml_media_t *p_media )
/**
* @brief Copy a ml_media_t to an input_item_t
* @param p_ml The Media Library object
* @param pp_item A pointer to a new input_item (return value)
* @param p_media The media to copy as an input item
* @note This function is threadsafe
*/
static
int
CreateInputItemFromMedia
(
media_library_t
*
p_ml
,
input_item_t
**
pp_item
,
ml_media_t
*
p_media
)
static
int
CreateInputItemFromMedia
(
input_item_t
**
pp_item
,
ml_media_t
*
p_media
)
{
playlist_t
*
p_pl
=
pl_Get
(
p_ml
);
*
pp_item
=
input_item_New
(
p_media
->
psz_uri
,
p_media
->
psz_title
);
/* ITEM_TYPE_FILE ); */
if
(
!*
pp_item
)
...
...
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