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
fd2c85f5
Commit
fd2c85f5
authored
May 01, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fake.c: allow changing the fake-file-reload option at runtime (untested).
parent
cbc9069a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
modules/codec/fake.c
modules/codec/fake.c
+14
-2
No files found.
modules/codec/fake.c
View file @
fd2c85f5
...
...
@@ -156,8 +156,7 @@ static int OpenDecoder( vlc_object_t *p_this )
memset
(
&
fmt_in
,
0
,
sizeof
(
fmt_in
)
);
memset
(
&
fmt_out
,
0
,
sizeof
(
fmt_out
)
);
var_Create
(
p_dec
,
"fake-file-reload"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_dec
,
"fake-file-reload"
,
&
val
);
val
.
i_int
=
var_CreateGetIntegerCommand
(
p_dec
,
"fake-file-reload"
);
if
(
val
.
i_int
>
0
)
{
p_dec
->
p_sys
->
b_reload
=
VLC_TRUE
;
...
...
@@ -423,6 +422,19 @@ static int FakeCallback( vlc_object_t *p_this, char const *psz_var,
p_image
->
pf_release
(
p_image
);
vlc_mutex_unlock
(
&
p_dec
->
p_sys
->
lock
);
}
else
if
(
!
strcmp
(
psz_var
,
"fake-file-reload"
)
)
{
if
(
newval
.
i_int
>
0
)
{
p_dec
->
p_sys
->
b_reload
=
VLC_TRUE
;
p_dec
->
p_sys
->
i_reload
=
(
mtime_t
)(
newval
.
i_int
*
1000000
);
p_dec
->
p_sys
->
i_next
=
(
mtime_t
)(
p_dec
->
p_sys
->
i_reload
+
mdate
());
}
else
{
p_dec
->
p_sys
->
b_reload
=
VLC_FALSE
;
}
}
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