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
e41cdcc4
Commit
e41cdcc4
authored
Jan 07, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/input.c: Define and set the "can-pause" variable.
parent
24653eff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/input/input.c
src/input/input.c
+3
-0
src/input/var.c
src/input/var.c
+3
-0
No files found.
src/input/input.c
View file @
e41cdcc4
...
@@ -108,6 +108,7 @@ static void AppendAttachment( int *pi_attachment, input_attachment_t ***ppp_atta
...
@@ -108,6 +108,7 @@ static void AppendAttachment( int *pi_attachment, input_attachment_t ***ppp_atta
* - length
* - length
* - bookmarks
* - bookmarks
* - seekable (if you can seek, it doesn't say if 'bar display' has be shown or not, for that check position != 0.0)
* - seekable (if you can seek, it doesn't say if 'bar display' has be shown or not, for that check position != 0.0)
* - can-pause
* * For intf callback upon changes
* * For intf callback upon changes
* - intf-change
* - intf-change
* TODO explain when Callback is called
* TODO explain when Callback is called
...
@@ -2265,6 +2266,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2265,6 +2266,7 @@ static int InputSourceInit( input_thread_t *p_input,
if
(
demux2_Control
(
in
->
p_demux
,
DEMUX_CAN_PAUSE
,
if
(
demux2_Control
(
in
->
p_demux
,
DEMUX_CAN_PAUSE
,
&
in
->
b_can_pause
)
)
&
in
->
b_can_pause
)
)
in
->
b_can_pause
=
VLC_FALSE
;
in
->
b_can_pause
=
VLC_FALSE
;
var_SetBool
(
p_input
,
"can-pause"
,
in
->
b_can_pause
);
int
ret
=
demux2_Control
(
in
->
p_demux
,
DEMUX_CAN_SEEK
,
int
ret
=
demux2_Control
(
in
->
p_demux
,
DEMUX_CAN_SEEK
,
&
val
.
b_bool
);
&
val
.
b_bool
);
...
@@ -2361,6 +2363,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2361,6 +2363,7 @@ static int InputSourceInit( input_thread_t *p_input,
access2_Control
(
in
->
p_access
,
ACCESS_CAN_PAUSE
,
access2_Control
(
in
->
p_access
,
ACCESS_CAN_PAUSE
,
&
in
->
b_can_pause
);
&
in
->
b_can_pause
);
var_SetBool
(
p_input
,
"can-pause"
,
in
->
b_can_pause
);
access2_Control
(
in
->
p_access
,
ACCESS_CAN_SEEK
,
access2_Control
(
in
->
p_access
,
ACCESS_CAN_SEEK
,
&
val
.
b_bool
);
&
val
.
b_bool
);
var_Set
(
p_input
,
"seekable"
,
val
);
var_Set
(
p_input
,
"seekable"
,
val
);
...
...
src/input/var.c
View file @
e41cdcc4
...
@@ -448,6 +448,9 @@ void input_ConfigVarInit ( input_thread_t *p_input )
...
@@ -448,6 +448,9 @@ void input_ConfigVarInit ( input_thread_t *p_input )
var_Create
(
p_input
,
"seekable"
,
VLC_VAR_BOOL
);
var_Create
(
p_input
,
"seekable"
,
VLC_VAR_BOOL
);
val
.
b_bool
=
VLC_TRUE
;
/* Fixed later*/
val
.
b_bool
=
VLC_TRUE
;
/* Fixed later*/
var_Change
(
p_input
,
"seekable"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
var_Change
(
p_input
,
"seekable"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
var_Create
(
p_input
,
"can-pause"
,
VLC_VAR_BOOL
);
val
.
b_bool
=
VLC_TRUE
;
/* Fixed later*/
var_Change
(
p_input
,
"can-pause"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
/* */
/* */
var_Create
(
p_input
,
"access-filter"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"access-filter"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
...
...
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