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
ec3c7d65
Commit
ec3c7d65
authored
Aug 18, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unneeded variables from avi demuxer context.
parent
2b0390c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+13
-15
No files found.
modules/demux/avi/avi.c
View file @
ec3c7d65
...
...
@@ -162,10 +162,6 @@ struct demux_sys_t
/* meta */
vlc_meta_t
*
meta
;
/* Progress box */
mtime_t
last_update
;
int
i_dialog_id
;
};
static
inline
off_t
__EVEN
(
off_t
i
)
...
...
@@ -2352,12 +2348,15 @@ static void AVI_IndexCreate( demux_t *p_demux )
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
avi_chunk_list_t
*
p_riff
;
avi_chunk_list_t
*
p_movi
;
avi_chunk_list_t
*
p_riff
;
avi_chunk_list_t
*
p_movi
;
unsigned
int
i_stream
;
off_t
i_movi_end
;
mtime_t
i_dialog_update
;
int
i_dialog_id
;
p_riff
=
AVI_ChunkFind
(
&
p_sys
->
ck_root
,
AVIFOURCC_RIFF
,
0
);
p_movi
=
AVI_ChunkFind
(
p_riff
,
AVIFOURCC_movi
,
0
);
...
...
@@ -2381,13 +2380,13 @@ static void AVI_IndexCreate( demux_t *p_demux )
/* Only show dialog if AVI is > 10MB */
p_demux
->
p_sys
->
i_dialog_id
=
-
1
;
i_dialog_id
=
-
1
;
if
(
stream_Size
(
p_demux
->
s
)
>
10000000
)
{
p_demux
->
p_sys
->
i_dialog_id
=
intf_IntfProgress
(
p_demux
,
i_dialog_id
=
intf_IntfProgress
(
p_demux
,
_
(
"Fixing AVI Index..."
),
0
.
0
);
p_demux
->
p_sys
->
last
_update
=
mdate
();
i_dialog
_update
=
mdate
();
}
for
(
;;
)
...
...
@@ -2398,14 +2397,13 @@ static void AVI_IndexCreate( demux_t *p_demux )
break
;
/* Don't update dialog too often */
if
(
p_demux
->
p_sys
->
i_dialog_id
>
0
&&
mdate
()
-
p_demux
->
p_sys
->
last_update
>
100000
)
if
(
i_dialog_id
>
0
&&
mdate
()
-
i_dialog_update
>
100000
)
{
int64_t
i_pos
=
stream_Tell
(
p_demux
->
s
)
*
100
/
stream_Size
(
p_demux
->
s
);
float
f_pos
=
(
float
)
i_pos
;
p_demux
->
p_sys
->
last
_update
=
mdate
();
intf_ProgressUpdate
(
p_demux
,
p_demux
->
p_sys
->
i_dialog_id
,
i_dialog
_update
=
mdate
();
intf_ProgressUpdate
(
p_demux
,
i_dialog_id
,
_
(
"Fixing AVI Index..."
),
f_pos
,
-
1
);
}
...
...
@@ -2466,9 +2464,9 @@ static void AVI_IndexCreate( demux_t *p_demux )
}
print_stat:
if
(
p_demux
->
p_sys
->
i_dialog_id
>
0
)
if
(
i_dialog_id
>
0
)
{
intf_UserHide
(
p_demux
,
p_demux
->
p_sys
->
i_dialog_id
);
intf_UserHide
(
p_demux
,
i_dialog_id
);
}
for
(
i_stream
=
0
;
i_stream
<
p_sys
->
i_track
;
i_stream
++
)
...
...
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