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
a172a55d
Commit
a172a55d
authored
Aug 10, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/vcd/vcd.c: a few navigation fixes.
parent
e73a0283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
modules/access/vcd/vcd.c
modules/access/vcd/vcd.c
+30
-4
No files found.
modules/access/vcd/vcd.c
View file @
a172a55d
...
...
@@ -2,7 +2,7 @@
* vcd.c : VCD input module for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* $Id: vcd.c,v 1.2
3 2003/08/09 19:39:17
gbazin Exp $
* $Id: vcd.c,v 1.2
4 2003/08/10 13:35:03
gbazin Exp $
*
* Author: Johan Bilien <jobi@via.ecp.fr>
*
...
...
@@ -334,8 +334,15 @@ static int VCDRead( input_thread_t * p_input, byte_t * p_buffer,
if
(
i_entry
+
1
<
p_vcd
->
i_entries_nb
&&
p_vcd
->
i_sector
>=
p_vcd
->
p_entries
[
i_entry
+
1
]
)
{
vlc_value_t
val
;
msg_Dbg
(
p_input
,
"new chapter"
);
p_input
->
stream
.
p_selected_area
->
i_part
++
;
/* Update the navigation variables without triggering
* a callback */
val
.
i_int
=
p_input
->
stream
.
p_selected_area
->
i_part
;
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
}
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
}
...
...
@@ -453,12 +460,19 @@ static void VCDSeek( input_thread_t * p_input, off_t i_off )
/* Find chapter */
if
(
p_vcd
->
b_valid_ep
)
{
for
(
i_index
=
0
;
i_index
<
p_area
->
i_part_nb
-
1
;
i_index
++
)
for
(
i_index
=
2
;
i_index
<=
p_area
->
i_part_nb
;
i_index
++
)
{
if
(
p_vcd
->
i_sector
<
p_vcd
->
p_entries
[
p_area
->
i_plugin_data
+
i_index
+
1
]
)
+
i_index
-
1
]
)
{
p_area
->
i_part
=
i_index
;
vlc_value_t
val
;
p_area
->
i_part
=
i_index
-
1
;
/* Update the navigation variables without triggering
* a callback */
val
.
i_int
=
p_area
->
i_part
;
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
break
;
}
}
...
...
@@ -527,6 +541,15 @@ static int VCDEntryPoints( input_thread_t * p_input )
p_vcd
->
i_entries_nb
=
0
;
#define i_track BCD_TO_BIN(entries.entry[i].i_track)
/* Reset the i_part_nb for each track */
for
(
i
=
0
;
i
<
i_nb
;
i
++
)
{
if
(
i_track
<=
p_input
->
stream
.
i_area_nb
)
{
p_input
->
stream
.
pp_areas
[
i_track
-
1
]
->
i_part_nb
=
0
;
}
}
for
(
i
=
0
;
i
<
i_nb
;
i
++
)
{
if
(
i_track
<=
p_input
->
stream
.
i_area_nb
)
...
...
@@ -544,6 +567,9 @@ static int VCDEntryPoints( input_thread_t * p_input )
i_entry_index
;
i_previous_track
=
i_track
;
}
msg_Dbg
(
p_input
,
"entry point %i begins at LBA: %i"
,
i_entry_index
,
p_vcd
->
p_entries
[
i_entry_index
]
);
i_entry_index
++
;
p_vcd
->
i_entries_nb
++
;
}
...
...
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