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
16ccd0f5
Commit
16ccd0f5
authored
Jan 03, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/mpeg/mpga.c, src/input/stream.c: fixed mem leaks.
parent
03e07903
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
modules/demux/mpeg/mpga.c
modules/demux/mpeg/mpga.c
+3
-1
src/input/stream.c
src/input/stream.c
+5
-1
No files found.
modules/demux/mpeg/mpga.c
View file @
16ccd0f5
...
...
@@ -2,7 +2,7 @@
* mpga.c : MPEG-I/II Audio input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mpga.c,v 1.1
4 2003/12/27 16:14:48 asmax
Exp $
* $Id: mpga.c,v 1.1
5 2004/01/03 00:23:04 gbazin
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -329,12 +329,14 @@ static int Open( vlc_object_t * p_this )
{
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
msg_Err
(
p_input
,
"cannot init stream"
);
if
(
fmt
.
psz_description
)
free
(
fmt
.
psz_description
);
goto
error
;
}
p_input
->
stream
.
i_mux_rate
=
p_sys
->
i_bitrate_avg
/
8
/
50
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
p_sys
->
p_es
=
es_out_Add
(
p_input
->
p_es_out
,
&
fmt
);
if
(
fmt
.
psz_description
)
free
(
fmt
.
psz_description
);
return
VLC_SUCCESS
;
error:
...
...
src/input/stream.c
View file @
16ccd0f5
...
...
@@ -2,7 +2,7 @@
* stream.c
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: stream.c,v 1.
7 2003/11/21 00:38:01
gbazin Exp $
* $Id: stream.c,v 1.
8 2004/01/03 00:23:04
gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -230,8 +230,12 @@ int stream_Read( stream_t *s, void *p_data, int i_data )
i_count
=
input_SplitBuffer
(
s
->
p_input
,
&
p_packet
,
__MIN
(
i_data
,
(
int
)
s
->
p_input
->
i_bufsize
)
);
if
(
i_count
<=
0
)
{
if
(
i_count
==
0
)
input_DeletePacket
(
s
->
p_input
->
p_method_data
,
p_packet
);
return
i_read
;
}
...
...
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