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
0492eee3
Commit
0492eee3
authored
Sep 26, 2004
by
Mark Moriarty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved marquee to Playlist area, "marquee " blanks out the marquee
parent
f7e0344e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
74 deletions
+44
-74
modules/control/rc.c
modules/control/rc.c
+44
-74
No files found.
modules/control/rc.c
View file @
0492eee3
...
...
@@ -336,13 +336,13 @@ static void Run( intf_thread_t *p_intf )
var_AddCallback
(
p_intf
,
"next"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"marquee"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"marquee"
,
Inpu
t
,
NULL
);
var_AddCallback
(
p_intf
,
"marquee"
,
Playlis
t
,
NULL
);
var_Create
(
p_intf
,
"marq-x"
,
VLC_VAR_INTEGER
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"marq-x"
,
Inpu
t
,
NULL
);
var_AddCallback
(
p_intf
,
"marq-x"
,
Playlis
t
,
NULL
);
var_Create
(
p_intf
,
"marq-y"
,
VLC_VAR_INTEGER
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"marq-y"
,
Inpu
t
,
NULL
);
var_AddCallback
(
p_intf
,
"marq-y"
,
Playlis
t
,
NULL
);
var_Create
(
p_intf
,
"marq-timeout"
,
VLC_VAR_INTEGER
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"marq-timeout"
,
Inpu
t
,
NULL
);
var_AddCallback
(
p_intf
,
"marq-timeout"
,
Playlis
t
,
NULL
);
var_Create
(
p_intf
,
"pause"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"pause"
,
Input
,
NULL
);
...
...
@@ -699,76 +699,7 @@ 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
,
"marquee"
)
)
{
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
psz_string
=
newval
.
psz_string
;
/* check for the playlist structure */
vlc_object_t
*
p_pl
=
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
!
p_pl
)
{
return
VLC_ENOOBJ
;
}
var_Set
(
p_pl
,
"marquee"
,
val
);
vlc_object_release
(
p_pl
);
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-x"
)
)
{
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-x"
,
val
);
vlc_object_release
(
p_pl
);
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-y"
)
)
{
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-y"
,
val
);
vlc_object_release
(
p_pl
);
}
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"
)
||
!
strcmp
(
psz_cmd
,
"chapter_p"
)
)
...
...
@@ -859,6 +790,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
playlist_t
*
p_playlist
;
vlc_value_t
val
;
p_playlist
=
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
...
...
@@ -904,6 +836,44 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
printf
(
_
(
"| no entries
\n
"
)
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"marquee"
)
)
{
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
psz_string
=
newval
.
psz_string
;
var_Set
(
p_playlist
,
"marquee"
,
val
);
}
else
{
val
.
psz_string
=
""
;
var_Set
(
p_playlist
,
"marquee"
,
val
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-x"
)
)
{
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
i_int
=
atoi
(
newval
.
psz_string
);
var_Set
(
p_playlist
,
"marq-x"
,
val
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-y"
)
)
{
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
i_int
=
atoi
(
newval
.
psz_string
);
var_Set
(
p_playlist
,
"marq-y"
,
val
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-timeout"
)
)
{
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
i_int
=
atoi
(
newval
.
psz_string
);
var_Set
(
p_playlist
,
"marq-timeout"
,
val
);
}
}
/*
* sanity check
*/
...
...
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