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
5ec136a2
Commit
5ec136a2
authored
Jun 19, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a tristate for avi index (fix / don't fix / ask). Closes:#679
parent
7032788b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+11
-3
No files found.
modules/demux/avi/avi.c
View file @
5ec136a2
...
@@ -51,6 +51,11 @@
...
@@ -51,6 +51,11 @@
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
int
pi_index
[]
=
{
0
,
1
,
2
};
static
char
*
ppsz_indexes
[]
=
{
N_
(
"Ask"
),
N_
(
"Always fix"
),
N_
(
"Never fix"
)
};
vlc_module_begin
();
vlc_module_begin
();
set_shortname
(
"AVI"
);
set_shortname
(
"AVI"
);
set_description
(
_
(
"AVI demuxer"
)
);
set_description
(
_
(
"AVI demuxer"
)
);
...
@@ -60,8 +65,9 @@ vlc_module_begin();
...
@@ -60,8 +65,9 @@ vlc_module_begin();
add_bool
(
"avi-interleaved"
,
0
,
NULL
,
add_bool
(
"avi-interleaved"
,
0
,
NULL
,
INTERLEAVE_TEXT
,
INTERLEAVE_LONGTEXT
,
VLC_TRUE
);
INTERLEAVE_TEXT
,
INTERLEAVE_LONGTEXT
,
VLC_TRUE
);
add_
bool
(
"avi-index"
,
0
,
NULL
,
add_
integer
(
"avi-index"
,
0
,
NULL
,
INDEX_TEXT
,
INDEX_LONGTEXT
,
VLC_FALSE
);
INDEX_TEXT
,
INDEX_LONGTEXT
,
VLC_FALSE
);
change_integer_list
(
pi_index
,
ppsz_indexes
,
0
);
set_callbacks
(
Open
,
Close
);
set_callbacks
(
Open
,
Close
);
vlc_module_end
();
vlc_module_end
();
...
@@ -206,6 +212,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -206,6 +212,7 @@ static int Open( vlc_object_t * p_this )
demux_sys_t
*
p_sys
;
demux_sys_t
*
p_sys
;
vlc_bool_t
b_index
=
VLC_FALSE
;
vlc_bool_t
b_index
=
VLC_FALSE
;
int
i_do_index
;
avi_chunk_t
ck_riff
;
avi_chunk_t
ck_riff
;
avi_chunk_list_t
*
p_riff
=
(
avi_chunk_list_t
*
)
&
ck_riff
;
avi_chunk_list_t
*
p_riff
=
(
avi_chunk_list_t
*
)
&
ck_riff
;
...
@@ -518,7 +525,8 @@ static int Open( vlc_object_t * p_this )
...
@@ -518,7 +525,8 @@ static int Open( vlc_object_t * p_this )
goto
error
;
goto
error
;
}
}
if
(
config_GetInt
(
p_demux
,
"avi-index"
)
)
i_do_index
=
config_GetInt
(
p_demux
,
"avi-index"
);
if
(
i_do_index
==
1
)
/* Always fix */
{
{
aviindex:
aviindex:
if
(
p_sys
->
b_seekable
)
if
(
p_sys
->
b_seekable
)
...
@@ -544,7 +552,7 @@ aviindex:
...
@@ -544,7 +552,7 @@ aviindex:
{
{
msg_Warn
(
p_demux
,
"broken or missing index, 'seek' will be "
msg_Warn
(
p_demux
,
"broken or missing index, 'seek' will be "
"axproximative or will have strange behaviour"
);
"axproximative or will have strange behaviour"
);
if
(
!
b_index
)
if
(
i_do_index
==
0
&&
!
b_index
)
{
{
int
i_create
;
int
i_create
;
i_create
=
intf_UserYesNo
(
p_demux
,
_
(
"AVI Index"
)
,
i_create
=
intf_UserYesNo
(
p_demux
,
_
(
"AVI Index"
)
,
...
...
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