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
cccd5463
Commit
cccd5463
authored
Dec 28, 2009
by
Geoffroy Couprie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp4: Factorize
parent
2e143045
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
36 deletions
+8
-36
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+8
-36
No files found.
modules/demux/mp4/drms.c
View file @
cccd5463
...
...
@@ -1563,42 +1563,14 @@ static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
if
(
psz_ipod
==
NULL
)
{
#ifdef WIN32
const
wchar_t
*
wfile
=
L"
\\
Apple Computer
\\
iTunes
\\
SC Info
\\
SC Info.sidb"
;
typedef
HRESULT
(
WINAPI
*
SHGETFOLDERPATH
)(
HWND
,
int
,
HANDLE
,
DWORD
,
LPWSTR
);
HINSTANCE
shfolder_dll
=
NULL
;
SHGETFOLDERPATH
dSHGetFolderPath
=
NULL
;
wchar_t
wpath
[
PATH_MAX
];
if
(
(
shfolder_dll
=
LoadLibrary
(
_T
(
"SHFolder.dll"
)
)
)
!=
NULL
)
{
dSHGetFolderPath
=
(
SHGETFOLDERPATH
)
GetProcAddress
(
shfolder_dll
,
_T
(
"SHGetFolderPathW"
)
);
}
if
(
dSHGetFolderPath
!=
NULL
&&
SUCCEEDED
(
dSHGetFolderPath
(
NULL
,
CSIDL_COMMON_APPDATA
,
NULL
,
0
,
wpath
)
)
)
{
if
(
wcslen
(
wpath
)
+
wcslen
(
wfile
)
>=
PATH_MAX
)
{
const
char
*
SCIfile
=
"
\\
Apple Computer
\\
iTunes
\\
SC Info
\\
SC Info.sidb"
;
strncpy
(
p_tmp
,
config_GetConfDir
(),
sizeof
(
p_tmp
-
1
));
if
(
strlen
(
p_tmp
)
+
strlen
(
SCIfile
)
>=
PATH_MAX
)
return
-
1
;
}
wcscat
(
wpath
,
wfile
);
psz_path
=
FromWide
(
wpath
);
strncpy
(
p_tmp
,
psz_path
,
sizeof
(
p_tmp
)
-
1
);
strcat
(
p_tmp
,
SCIfile
);
p_tmp
[
sizeof
(
p_tmp
)
-
1
]
=
'\0'
;
free
(
psz_path
);
psz_path
=
p_tmp
;
}
if
(
shfolder_dll
!=
NULL
)
{
FreeLibrary
(
shfolder_dll
);
}
#endif
}
else
...
...
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