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
c6a78e1b
Commit
c6a78e1b
authored
Mar 11, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use VLC_ENOMEM instead of VLC_EGENERIC.
parent
eb6f43ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
modules/demux/rawvid.c
modules/demux/rawvid.c
+1
-1
modules/demux/tta.c
modules/demux/tta.c
+4
-4
No files found.
modules/demux/rawvid.c
View file @
c6a78e1b
...
...
@@ -166,7 +166,7 @@ static int Open( vlc_object_t * p_this )
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
!
p_sys
)
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
p_sys
->
i_pcr
=
1
;
...
...
modules/demux/tta.c
View file @
c6a78e1b
...
...
@@ -110,7 +110,7 @@ static int Open( vlc_object_t * p_this )
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
!
p_sys
)
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
/* Read the metadata */
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_FOURCC
(
'T'
,
'T'
,
'A'
,
'1'
)
);
...
...
@@ -130,7 +130,7 @@ static int Open( vlc_object_t * p_this )
if
(
!
p_seektable
)
{
free
(
p_sys
);
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
}
stream_Read
(
p_demux
->
s
,
p_seektable
,
i_seektable_size
);
...
...
@@ -139,7 +139,7 @@ static int Open( vlc_object_t * p_this )
{
free
(
p_seektable
);
free
(
p_sys
);
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
}
for
(
i
=
0
;
i
<
p_sys
->
i_totalframes
;
i
++
)
...
...
@@ -155,7 +155,7 @@ static int Open( vlc_object_t * p_this )
free
(
p_sys
->
pi_seektable
);
free
(
p_seektable
);
free
(
p_sys
);
return
VLC_E
GENERIC
;
return
VLC_E
NOMEM
;
}
memcpy
(
(
uint8_t
*
)
fmt
.
p_extra
,
p_header
,
22
);
memcpy
(
(
uint8_t
*
)
fmt
.
p_extra
+
22
,
p_seektable
,
fmt
.
i_extra
-
22
);
...
...
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