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
6d775903
Commit
6d775903
authored
Sep 26, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add timeout hook for marquee
parent
8fb0525e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
modules/control/rc.c
modules/control/rc.c
+20
-0
No files found.
modules/control/rc.c
View file @
6d775903
...
...
@@ -335,6 +335,8 @@ static void Run( intf_thread_t *p_intf )
var_AddCallback
(
p_intf
,
"marq-x"
,
Input
,
NULL
);
var_Create
(
p_intf
,
"marq-y"
,
VLC_VAR_INTEGER
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"marq-y"
,
Input
,
NULL
);
var_Create
(
p_intf
,
"marq-timeout"
,
VLC_VAR_INTEGER
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"marq-timeout"
,
Input
,
NULL
);
var_Create
(
p_intf
,
"pause"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"pause"
,
Input
,
NULL
);
...
...
@@ -598,6 +600,7 @@ static void Run( intf_thread_t *p_intf )
printf
(
_
(
"| marquee STRING . . . . . overlay STRING in video
\n
"
));
printf
(
_
(
"| marq-x X . . . . . .offset of marquee, from left
\n
"
));
printf
(
_
(
"| marq-y Y . . . . . . offset of marquee, from top
\n
"
));
printf
(
_
(
"| marq-timeout T. . . . .timeout of marquee, in ms
\n
"
));
printf
(
"|
\n
"
);
printf
(
_
(
"| seek X . seek in seconds, for instance `seek 12'
\n
"
));
printf
(
_
(
"| pause . . . . . . . . . . . . . . toggle pause
\n
"
));
...
...
@@ -729,6 +732,23 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-timeout"
)
)
{
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
vlc_object_t
*
p_pl
=
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
!
p_pl
)
{
return
VLC_ENOOBJ
;
}
val
.
i_int
=
atoi
(
newval
.
psz_string
);
var_Set
(
p_pl
,
"marq-timeout"
,
val
);
vlc_object_release
(
p_pl
);
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
else
if
(
!
strcmp
(
psz_cmd
,
"chapter"
)
||
!
strcmp
(
psz_cmd
,
"chapter_n"
)
||
...
...
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