Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e590028f
Commit
e590028f
authored
Jun 26, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins2/src/skin_main.cpp: small cleanup to the skins loader demux.
parent
ef85266f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+6
-16
No files found.
modules/gui/skins2/src/skin_main.cpp
View file @
e590028f
...
...
@@ -259,22 +259,11 @@ static int DemuxOpen( vlc_object_t *p_this )
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
DemuxControl
;
// Test that we have a valid .
tar.gz
file, based on the extension
// Test that we have a valid .
vlt
file, based on the extension
// TODO: an actual check of the contents would be better...
if
(
(
ext
=
strchr
(
p_demux
->
psz_path
,
'.'
)
)
==
NULL
)
if
(
(
ext
=
strchr
(
p_demux
->
psz_path
,
'.'
)
)
==
NULL
||
strcasecmp
(
ext
,
".vlt"
)
)
{
msg_Warn
(
p_this
,
"skins2 module discarded (path=%s)"
,
p_demux
->
psz_path
);
return
VLC_EGENERIC
;
}
// Skip '.'
ext
++
;
if
(
strcasecmp
(
ext
,
"tar.gz"
)
&&
strcasecmp
(
ext
,
"vlt"
)
)
{
msg_Warn
(
p_this
,
"skins2 module discarded (unknown extension '%s')"
,
ext
);
return
VLC_EGENERIC
;
}
...
...
@@ -283,7 +272,7 @@ static int DemuxOpen( vlc_object_t *p_this )
if
(
p_intf
!=
NULL
)
{
// Do nothing is skins2 is not the main interface
if
(
!
strcmp
(
p_intf
->
p_module
->
psz_shortname
,
"skins2"
)
)
if
(
var_Type
(
p_intf
,
"skin-to-load"
)
!=
VLC_VAR_STRING
)
{
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIST
,
...
...
@@ -297,7 +286,7 @@ static int DemuxOpen( vlc_object_t *p_this )
}
vlc_value_t
val
;
val
.
psz_string
=
strdup
(
p_demux
->
psz_path
)
;
val
.
psz_string
=
p_demux
->
psz_path
;
var_Set
(
p_intf
,
"skin-to-load"
,
val
);
}
else
...
...
@@ -305,6 +294,7 @@ static int DemuxOpen( vlc_object_t *p_this )
msg_Warn
(
p_this
,
"skin could not be loaded (not using skins2 intf)"
);
}
vlc_object_release
(
p_intf
);
}
...
...
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