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
c109dcf1
Commit
c109dcf1
authored
Nov 30, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drms: Some cleanups
parent
e871dbed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+4
-13
No files found.
modules/demux/mp4/drms.c
View file @
c109dcf1
...
...
@@ -217,14 +217,9 @@ void *drms_alloc( const char *psz_homedir )
{
struct
drms_s
*
p_drms
;
p_drms
=
malloc
(
sizeof
(
struct
drms_s
)
);
if
(
p_drms
==
NULL
)
{
p_drms
=
calloc
(
1
,
sizeof
(
struct
drms_s
)
);
if
(
!
p_drms
)
return
NULL
;
}
memset
(
p_drms
,
0
,
sizeof
(
struct
drms_s
)
);
strncpy
(
p_drms
->
psz_homedir
,
psz_homedir
,
PATH_MAX
);
p_drms
->
psz_homedir
[
PATH_MAX
-
1
]
=
'\0'
;
...
...
@@ -239,11 +234,7 @@ void drms_free( void *_p_drms )
{
struct
drms_s
*
p_drms
=
(
struct
drms_s
*
)
_p_drms
;
if
(
p_drms
->
p_name
!=
NULL
)
{
free
(
(
void
*
)
p_drms
->
p_name
);
}
free
(
p_drms
);
}
...
...
@@ -2097,7 +2088,7 @@ static int GetiPodID( int64_t *p_ipod_id )
#else
/* !defined( UNDER_CE ) */
void
*
drms_alloc
(
const
char
*
psz_homedir
){
return
0
;
}
void
*
drms_alloc
(
const
char
*
psz_homedir
){
return
NULL
;
}
void
drms_free
(
void
*
a
){}
void
drms_decrypt
(
void
*
a
,
uint32_t
*
b
,
uint32_t
c
,
uint32_t
*
k
){}
void
drms_get_p_key
(
void
*
p_drms
,
uint32_t
*
p_key
);
...
...
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