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
7c8c88f6
Commit
7c8c88f6
authored
Dec 03, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix input memleak
- move vlm to input/ - remove unused libvlc export
parent
6aabccec
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
+15
-6
src/Makefile.am
src/Makefile.am
+1
-1
src/input/input.c
src/input/input.c
+8
-4
src/input/input_internal.h
src/input/input_internal.h
+4
-0
src/input/vlm.c
src/input/vlm.c
+1
-0
src/misc/modules.c
src/misc/modules.c
+1
-1
No files found.
src/Makefile.am
View file @
7c8c88f6
...
...
@@ -322,7 +322,7 @@ SOURCES_libvlc_common = \
misc/variables.c
\
misc/error.c
\
misc/update.c
\
misc
/vlm.c
\
input
/vlm.c
\
misc/xml.c
\
misc/dict.c
\
misc/devices.c
\
...
...
src/input/input.c
View file @
7c8c88f6
...
...
@@ -51,8 +51,8 @@
static
int
Run
(
input_thread_t
*
p_input
);
static
int
RunAndClean
(
input_thread_t
*
p_input
);
static
input_thread_t
*
Create
(
vlc_object_t
*
,
input_item_t
*
,
char
*
,
vlc_bool_t
);
static
input_thread_t
*
Create
(
vlc_object_t
*
,
input_item_t
*
,
const
char
*
,
vlc_bool_t
);
static
int
Init
(
input_thread_t
*
p_input
);
static
void
Error
(
input_thread_t
*
p_input
);
static
void
End
(
input_thread_t
*
p_input
);
...
...
@@ -105,7 +105,7 @@ static void InputMetaUser( input_thread_t *p_input );
* TODO complete this list (?)
*****************************************************************************/
static
input_thread_t
*
Create
(
vlc_object_t
*
p_parent
,
input_item_t
*
p_item
,
char
*
psz_header
,
vlc_bool_t
b_quick
)
c
onst
c
har
*
psz_header
,
vlc_bool_t
b_quick
)
{
input_thread_t
*
p_input
=
NULL
;
/* thread descriptor */
vlc_value_t
val
;
...
...
@@ -272,7 +272,7 @@ input_thread_t *__input_CreateThread( vlc_object_t *p_parent,
/* Gruik ! */
input_thread_t
*
__input_CreateThread2
(
vlc_object_t
*
p_parent
,
input_item_t
*
p_item
,
char
*
psz_header
)
c
onst
c
har
*
psz_header
)
{
input_thread_t
*
p_input
=
NULL
;
/* thread descriptor */
...
...
@@ -290,6 +290,7 @@ input_thread_t *__input_CreateThread2( vlc_object_t *p_parent,
input_ChangeState
(
p_input
,
ERROR_S
);
msg_Err
(
p_input
,
"cannot create input thread"
);
vlc_object_detach
(
p_input
);
free
(
p_input
->
p
);
vlc_object_destroy
(
p_input
);
return
NULL
;
}
...
...
@@ -331,6 +332,7 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
input_ChangeState
(
p_input
,
ERROR_S
);
msg_Err
(
p_input
,
"cannot create input thread"
);
vlc_object_detach
(
p_input
);
free
(
p_input
->
p
);
vlc_object_destroy
(
p_input
);
return
VLC_EGENERIC
;
}
...
...
@@ -370,6 +372,7 @@ int __input_Preparse( vlc_object_t *p_parent, input_item_t *p_item )
if
(
p_input
->
p
->
p_es_out
)
input_EsOutDelete
(
p_input
->
p
->
p_es_out
);
vlc_object_detach
(
p_input
);
free
(
p_input
->
p
);
vlc_object_destroy
(
p_input
);
return
VLC_SUCCESS
;
...
...
@@ -532,6 +535,7 @@ static int RunAndClean( input_thread_t *p_input )
/* Release memory */
vlc_object_detach
(
p_input
);
free
(
p_input
->
p
);
vlc_object_destroy
(
p_input
);
return
0
;
...
...
src/input/input_internal.h
View file @
7c8c88f6
...
...
@@ -224,6 +224,10 @@ int input_DownloadAndCacheArt ( playlist_t *, input_item_t * );
* Internal prototypes
***************************************************************************/
/* input.c */
#define input_CreateThread2(a,b,c) __input_CreateThread2(VLC_OBJECT(a),b,c)
input_thread_t
*
__input_CreateThread2
(
vlc_object_t
*
,
input_item_t
*
,
const
char
*
);
/* var.c */
void
input_ControlVarInit
(
input_thread_t
*
);
void
input_ControlVarClean
(
input_thread_t
*
);
...
...
src/
misc
/vlm.c
→
src/
input
/vlm.c
View file @
7c8c88f6
...
...
@@ -42,6 +42,7 @@
#endif
#include <vlc_input.h>
#include "input_internal.h"
#include <vlc_stream.h>
#include <vlc_vlm.h>
#include <vlc_vod.h>
...
...
src/misc/modules.c
View file @
7c8c88f6
...
...
@@ -1456,7 +1456,7 @@ static void CloseModule( module_handle_t handle )
FreeLibrary
(
handle
);
#elif defined(HAVE_DL_DLOPEN)
dlclose
(
handle
);
//
dlclose( handle );
#elif defined(HAVE_DL_SHL_LOAD)
shl_unload
(
handle
);
...
...
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