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
65126a7e
Commit
65126a7e
authored
Aug 03, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a memleak and threaded function definition.
parent
191f9ff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/video_output/video_output.c
src/video_output/video_output.c
+7
-4
No files found.
src/video_output/video_output.c
View file @
65126a7e
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
* Local prototypes
* Local prototypes
*****************************************************************************/
*****************************************************************************/
static
int
InitThread
(
vout_thread_t
*
);
static
int
InitThread
(
vout_thread_t
*
);
static
void
RunThread
(
vout_thread_t
*
);
static
void
*
RunThread
(
vlc_object_t
*
);
static
void
ErrorThread
(
vout_thread_t
*
);
static
void
ErrorThread
(
vout_thread_t
*
);
static
void
CleanThread
(
vout_thread_t
*
);
static
void
CleanThread
(
vout_thread_t
*
);
static
void
EndThread
(
vout_thread_t
*
);
static
void
EndThread
(
vout_thread_t
*
);
...
@@ -366,8 +366,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
...
@@ -366,8 +366,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
}
}
/* Create the vout thread */
/* Create the vout thread */
config_ChainCreate
(
&
psz_name
,
&
p_cfg
,
psz_parser
);
c
har
*
psz_tmp
=
c
onfig_ChainCreate
(
&
psz_name
,
&
p_cfg
,
psz_parser
);
free
(
psz_parser
);
free
(
psz_parser
);
free
(
psz_tmp
);
p_vout
->
p_cfg
=
p_cfg
;
p_vout
->
p_cfg
=
p_cfg
;
p_vout
->
p_module
=
module_Need
(
p_vout
,
p_vout
->
p_module
=
module_Need
(
p_vout
,
(
p_vout
->
psz_filter_chain
&&
*
p_vout
->
psz_filter_chain
)
?
(
p_vout
->
psz_filter_chain
&&
*
p_vout
->
psz_filter_chain
)
?
...
@@ -696,8 +697,9 @@ static int InitThread( vout_thread_t *p_vout )
...
@@ -696,8 +697,9 @@ static int InitThread( vout_thread_t *p_vout )
* terminated. It handles the pictures arriving in the video heap and the
* terminated. It handles the pictures arriving in the video heap and the
* display device events.
* display device events.
*****************************************************************************/
*****************************************************************************/
static
void
RunThread
(
vout_thread_t
*
p_vout
)
static
void
*
RunThread
(
vlc_object_t
*
p_this
)
{
{
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
int
i_index
;
/* index in heap */
int
i_index
;
/* index in heap */
int
i_idle_loops
=
0
;
/* loops without displaying a picture */
int
i_idle_loops
=
0
;
/* loops without displaying a picture */
mtime_t
current_date
;
/* current date */
mtime_t
current_date
;
/* current date */
...
@@ -1389,8 +1391,9 @@ typedef struct suxor_thread_t
...
@@ -1389,8 +1391,9 @@ typedef struct suxor_thread_t
}
suxor_thread_t
;
}
suxor_thread_t
;
static
void
SuxorRestartVideoES
(
suxor_thread_t
*
p_this
)
static
void
*
SuxorRestartVideoES
(
vlc_object_t
*
p_vlc_t
)
{
{
suxor_thread_t
*
p_this
=
(
suxor_thread_t
*
)
p_vlc_t
;
/* Now restart current video stream */
/* Now restart current video stream */
int
val
=
var_GetInteger
(
p_this
->
p_input
,
"video-es"
);
int
val
=
var_GetInteger
(
p_this
->
p_input
,
"video-es"
);
if
(
val
>=
0
)
if
(
val
>=
0
)
...
...
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