Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1ff15337
Commit
1ff15337
authored
Jan 17, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/control/rc/rc.c: boundary checks for chapter navigation.
parent
87c994f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
modules/control/rc/rc.c
modules/control/rc/rc.c
+17
-17
No files found.
modules/control/rc/rc.c
View file @
1ff15337
...
@@ -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.2
0 2003/01/16 20:08:00 lool
Exp $
* $Id: rc.c,v 1.2
1 2003/01/17 19:22:21 sam
Exp $
*
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
*
...
@@ -476,8 +476,9 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -476,8 +476,9 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
{
{
/* Get. */
/* Get. */
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
printf(
"Currently playing chapter %d
\n
"
,
printf(
"Currently playing chapter %d/%d
\n
"
,
p_input->stream.p_selected_area->i_part
)
;
p_input->stream.p_selected_area->i_part,
p_input->stream.p_selected_area->i_part_nb
-
1
)
;
vlc_mutex_unlock(
&p_input->stream.stream_lock
)
;
vlc_mutex_unlock(
&p_input->stream.stream_lock
)
;
vlc_object_release(
p_input
)
;
vlc_object_release(
p_input
)
;
...
@@ -498,13 +499,13 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -498,13 +499,13 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
}
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
if(
(
i_chapter
>
0
)
&&
(
i_chapter
<
=
if(
(
i_chapter
>
0
)
&&
(
i_chapter
<
p_input->stream.p_selected_area->i_part_nb
)
)
p_input->stream.p_selected_area->i_part_nb
)
)
{
{
input_area_t
*p_area
=
p_input->stream.p_selected_area
;
p_input->stream.p_selected_area->i_part
=
i_chapter
;
p_input->stream.p_selected_area->i_part
=
i_chapter
;
vlc_mutex_unlock(
&p_input->stream.stream_lock
)
;
vlc_mutex_unlock(
&p_input->stream.stream_lock
)
;
input_ChangeArea(
p_input,
input_ChangeArea(
p_input,
p_area
)
;
(input_area_t*)p_input->stream.p_selected_area
)
;
input_SetStatus(
p_input,
INPUT_STATUS_PLAY
)
;
input_SetStatus(
p_input,
INPUT_STATUS_PLAY
)
;
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
}
}
...
@@ -530,8 +531,9 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -530,8 +531,9 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
{
{
/* Get. */
/* Get. */
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
printf(
"Currently playing title %d
\n
"
,
printf(
"Currently playing title %d/%d
\n
"
,
p_input->stream.p_selected_area->i_id
)
;
p_input->stream.p_selected_area->i_id,
p_input->stream.i_area_nb
-
1
)
;
vlc_mutex_unlock(
&p_input->stream.stream_lock
)
;
vlc_mutex_unlock(
&p_input->stream.stream_lock
)
;
vlc_object_release(
p_input
)
;
vlc_object_release(
p_input
)
;
...
@@ -552,13 +554,11 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -552,13 +554,11 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
}
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
if(
(
i_title
>
0
)
&&
(
i_title
<=
if(
(
i_title
>
0
)
&&
(
i_title
<
p_input->stream.i_area_nb
)
)
p_input->stream.p_selected_area->i_part_nb
)
)
{
{
p_input->stream.p_selected_area->i_part
=
i_title
;
input_area_t
*p_area
=
p_input->stream.pp_areas[i_title]
;
vlc_mutex_unlock(
&p_input->stream.stream_lock
)
;
vlc_mutex_unlock(
&p_input->stream.stream_lock
)
;
input_ChangeArea(
p_input,
input_ChangeArea(
p_input,
p_area
)
;
(input_area_t*)p_input->stream.pp_areas[i_title]
)
;
input_SetStatus(
p_input,
INPUT_STATUS_PLAY
)
;
input_SetStatus(
p_input,
INPUT_STATUS_PLAY
)
;
vlc_mutex_lock(
&p_input->stream.stream_lock
)
;
vlc_mutex_lock(
&p_input->stream.stream_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