Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c74ab57f
Commit
c74ab57f
authored
May 18, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./plugins/text/rc.c: added a safety lock.
parent
49ec7385
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
plugins/text/rc.c
plugins/text/rc.c
+4
-2
No files found.
plugins/text/rc.c
View file @
c74ab57f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.1
2 2002/04/19 13:56:11
sam Exp $
* $Id: rc.c,v 1.1
3 2002/05/18 07:30:03
sam Exp $
*
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
*
...
@@ -161,7 +161,8 @@ static void intf_Run( intf_thread_t *p_intf )
...
@@ -161,7 +161,8 @@ static void intf_Run( intf_thread_t *p_intf )
if
(
p_input_bank
->
pp_input
[
0
]
!=
NULL
)
if
(
p_input_bank
->
pp_input
[
0
]
!=
NULL
)
{
{
/* Get position */
/* Get position */
if
(
S
.
i_mux_rate
)
vlc_mutex_lock
(
&
S
.
stream_lock
);
if
(
!
p_input_bank
->
pp_input
[
0
]
->
b_die
&&
S
.
i_mux_rate
)
{
{
f_ratio
=
1
.
0
/
(
50
*
S
.
i_mux_rate
);
f_ratio
=
1
.
0
/
(
50
*
S
.
i_mux_rate
);
i_newpos
=
S
.
p_selected_area
->
i_tell
*
f_ratio
;
i_newpos
=
S
.
p_selected_area
->
i_tell
*
f_ratio
;
...
@@ -174,6 +175,7 @@ static void intf_Run( intf_thread_t *p_intf )
...
@@ -174,6 +175,7 @@ static void intf_Run( intf_thread_t *p_intf )
S
.
p_selected_area
->
i_size
)
);
S
.
p_selected_area
->
i_size
)
);
}
}
}
}
vlc_mutex_unlock
(
&
S
.
stream_lock
);
}
}
#undef S
#undef S
vlc_mutex_unlock
(
&
p_input_bank
->
lock
);
vlc_mutex_unlock
(
&
p_input_bank
->
lock
);
...
...
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