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
74cf34e6
Commit
74cf34e6
authored
Jun 30, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the suxor thread
There is enough sucking code.
parent
6ef09b54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
34 deletions
+5
-34
src/video_output/video_output.c
src/video_output/video_output.c
+5
-34
No files found.
src/video_output/video_output.c
View file @
74cf34e6
...
...
@@ -1400,32 +1400,6 @@ int vout_VarCallback( vlc_object_t * p_this, const char * psz_variable,
return
VLC_SUCCESS
;
}
/*****************************************************************************
* Helper thread for object variables callbacks.
* Only used to avoid deadlocks when using the video embedded mode.
*****************************************************************************/
typedef
struct
suxor_thread_t
{
VLC_COMMON_MEMBERS
input_thread_t
*
p_input
;
}
suxor_thread_t
;
static
void
SuxorRestartVideoES
(
suxor_thread_t
*
p_this
)
{
/* Now restart current video stream */
int
val
=
var_GetInteger
(
p_this
->
p_input
,
"video-es"
);
if
(
val
>=
0
)
{
var_SetInteger
(
p_this
->
p_input
,
"video-es"
,
-
VIDEO_ES
);
var_SetInteger
(
p_this
->
p_input
,
"video-es"
,
val
);
}
vlc_object_release
(
p_this
->
p_input
);
vlc_object_release
(
p_this
);
}
/*****************************************************************************
* object variables callbacks: a bunch of object variables are used by the
* interfaces to interact with the vout.
...
...
@@ -1514,17 +1488,14 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
var_Get
(
p_input
,
"video-es"
,
&
val
);
if
(
val
.
i_int
>=
0
)
{
suxor_thread_t
*
p_suxor
=
vlc_object_create
(
p_vout
,
sizeof
(
suxor_thread_t
)
);
p_suxor
->
p_input
=
p_input
;
p_vout
->
b_filter_change
=
true
;
vlc_object_yield
(
p_input
);
vlc_thread_create
(
p_suxor
,
"suxor"
,
SuxorRestartVideoES
,
VLC_THREAD_PRIORITY_LOW
,
false
);
/* To all (embedded) video output developpers:
* Beware of callback loops if you listen on video-es. Really.
* You were warned. -- Courmisch */
var_SetInteger
(
p_input
,
"video-es"
,
-
VIDEO_ES
);
var_Set
(
p_input
,
"video-es"
,
val
);
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
...
...
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