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
b1cea0a3
Commit
b1cea0a3
authored
Aug 22, 2008
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings. Note that seeking is not enabled with timeshift.
parent
bc9cdb46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
modules/access_filter/timeshift.c
modules/access_filter/timeshift.c
+13
-6
No files found.
modules/access_filter/timeshift.c
View file @
b1cea0a3
...
...
@@ -105,9 +105,9 @@ struct access_sys_t
{
block_fifo_t
*
p_fifo
;
int
i_files
;
int
i_file_size
;
int
i_write_size
;
unsigned
i_files
;
unsigned
i_file_size
;
unsigned
i_write_size
;
ts_entry_t
*
p_read_list
;
ts_entry_t
**
pp_read_last
;
...
...
@@ -204,7 +204,7 @@ static void Close( vlc_object_t *p_this )
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
ts_entry_t
*
p_entry
;
int
i
;
unsigned
i
;
msg_Dbg
(
p_access
,
"timeshift close called"
);
vlc_thread_join
(
p_access
);
...
...
@@ -378,7 +378,12 @@ static void NextFileWrite( access_t *p_access )
/* Put written file in read list */
if
(
p_sys
->
i_write_size
<
p_sys
->
i_file_size
)
ftruncate
(
fileno
(
p_sys
->
p_write_list
->
file
),
p_sys
->
i_write_size
);
if
(
ftruncate
(
fileno
(
p_sys
->
p_write_list
->
file
),
p_sys
->
i_write_size
)
==
-
1
)
{
msg_Dbg
(
p_access
,
"unable to truncate file: %m"
);
/* return; */
}
fseek
(
p_sys
->
p_write_list
->
file
,
0
,
SEEK_SET
);
*
p_sys
->
pp_read_last
=
p_sys
->
p_write_list
;
...
...
@@ -430,7 +435,7 @@ static int WriteBlockToFile( access_t *p_access, block_t *p_block )
{
FILE
*
file
;
sprintf
(
p_sys
->
psz_filename
,
"%s%
i
.dat"
,
sprintf
(
p_sys
->
psz_filename
,
"%s%
u
.dat"
,
p_sys
->
psz_filename_base
,
p_sys
->
i_files
);
file
=
utf8_fopen
(
p_sys
->
psz_filename
,
"w+b"
);
...
...
@@ -522,6 +527,8 @@ static block_t *ReadBlockFromFile( access_t *p_access )
static
int
Seek
(
access_t
*
p_access
,
int64_t
i_pos
)
{
//access_sys_t *p_sys = p_access->p_sys;
(
void
)
p_access
;
(
void
)
i_pos
;
return
VLC_SUCCESS
;
}
...
...
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