Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2e42f024
Commit
2e42f024
authored
Apr 17, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: remove write-only INPUT_UPDATE_SIZE
parent
732c5ed4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
16 deletions
+4
-16
include/vlc_input.h
include/vlc_input.h
+0
-1
modules/access/file.c
modules/access/file.c
+1
-5
modules/access/vcd/vcd.c
modules/access/vcd/vcd.c
+2
-2
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+1
-2
modules/access/vdr.c
modules/access/vdr.c
+0
-2
src/input/input.c
src/input/input.c
+0
-4
No files found.
include/vlc_input.h
View file @
2e42f024
...
...
@@ -203,7 +203,6 @@ static inline void vlc_input_attachment_Delete( input_attachment_t *a )
*****************************************************************************/
/* i_update field of access_t/demux_t */
#define INPUT_UPDATE_SIZE 0x0001
#define INPUT_UPDATE_TITLE 0x0010
#define INPUT_UPDATE_SEEKPOINT 0x0020
#define INPUT_UPDATE_META 0x0040
...
...
modules/access/file.c
View file @
2e42f024
...
...
@@ -313,12 +313,8 @@ static ssize_t FileRead (access_t *p_access, uint8_t *p_buffer, size_t i_len)
{
struct
stat
st
;
if
((
fstat
(
fd
,
&
st
)
==
0
)
&&
(
p_access
->
info
.
i_size
!=
(
uint64_t
)
st
.
st_size
))
{
if
(
fstat
(
fd
,
&
st
)
==
0
)
p_access
->
info
.
i_size
=
st
.
st_size
;
p_access
->
info
.
i_update
|=
INPUT_UPDATE_SIZE
;
}
}
return
val
;
}
...
...
modules/access/vcd/vcd.c
View file @
2e42f024
...
...
@@ -273,7 +273,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
{
/* Update info */
p_access
->
info
.
i_update
|=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SEEKPOINT
|
INPUT_UPDATE_SIZE
;
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SEEKPOINT
;
p_access
->
info
.
i_title
=
i
;
p_access
->
info
.
i_seekpoint
=
0
;
p_access
->
info
.
i_size
=
p_sys
->
title
[
i
]
->
i_size
;
...
...
@@ -336,7 +336,7 @@ static block_t *Block( access_t *p_access )
}
p_access
->
info
.
i_update
|=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SEEKPOINT
|
INPUT_UPDATE_SIZE
;
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SEEKPOINT
;
p_access
->
info
.
i_title
++
;
p_access
->
info
.
i_seekpoint
=
0
;
p_access
->
info
.
i_size
=
p_sys
->
title
[
p_access
->
info
.
i_title
]
->
i_size
;
...
...
modules/access/vcdx/access.c
View file @
2e42f024
...
...
@@ -715,8 +715,7 @@ VCDSetOrigin( access_t *p_access, lsn_t i_lsn, track_t i_track,
p_vcdplayer
->
play_item
.
type
);
}
p_access
->
info
.
i_update
=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SIZE
|
INPUT_UPDATE_SEEKPOINT
;
p_access
->
info
.
i_update
=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SEEKPOINT
;
VCDUpdateTitle
(
p_access
);
...
...
modules/access/vdr.c
View file @
2e42f024
...
...
@@ -481,7 +481,6 @@ static bool ImportNextFile( access_t *p_access )
ARRAY_APPEND
(
p_sys
->
file_sizes
,
st
.
st_size
);
p_access
->
info
.
i_size
+=
st
.
st_size
;
p_access
->
info
.
i_update
|=
INPUT_UPDATE_SIZE
;
return
true
;
}
...
...
@@ -586,7 +585,6 @@ static void UpdateFileSize( access_t *p_access )
p_access
->
info
.
i_size
-=
CURRENT_FILE_SIZE
;
CURRENT_FILE_SIZE
=
st
.
st_size
;
p_access
->
info
.
i_size
+=
CURRENT_FILE_SIZE
;
p_access
->
info
.
i_update
|=
INPUT_UPDATE_SIZE
;
}
/*****************************************************************************
...
...
src/input/input.c
View file @
2e42f024
...
...
@@ -2208,8 +2208,6 @@ static void UpdateGenericFromDemux( input_thread_t *p_input )
}
p_demux
->
info
.
i_update
&=
~
INPUT_UPDATE_META
;
}
p_demux
->
info
.
i_update
&=
~
INPUT_UPDATE_SIZE
;
}
static
void
UpdateTitleListfromDemux
(
input_thread_t
*
p_input
)
...
...
@@ -2293,8 +2291,6 @@ static void UpdateGenericFromAccess( input_thread_t *p_input )
p_access
->
info
.
i_update
&=
~
INPUT_UPDATE_SIGNAL
;
}
p_access
->
info
.
i_update
&=
~
INPUT_UPDATE_SIZE
;
}
/*****************************************************************************
...
...
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