Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
67c571cf
Commit
67c571cf
authored
Nov 07, 2004
by
Mark Moriarty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change marquee callback variables to use INPUT instead of PLAYLIST
parent
c6d7c7f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
25 deletions
+34
-25
modules/control/rc.c
modules/control/rc.c
+14
-5
modules/video_filter/marq.c
modules/video_filter/marq.c
+20
-20
No files found.
modules/control/rc.c
View file @
67c571cf
...
...
@@ -860,6 +860,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
vlc_object_t
*
p_pl
;
vlc_value_t
val
;
vlc_object_t
*
p_inp
;
p_pl
=
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
...
...
@@ -868,18 +869,25 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_ENOOBJ
;
}
p_inp
=
vlc_object_find
(
p_this
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
!
p_inp
)
{
return
VLC_ENOOBJ
;
}
/* Parse miscellaneous commands */
if
(
!
strcmp
(
psz_cmd
,
"marq-marquee"
)
)
{
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
psz_string
=
newval
.
psz_string
;
var_Set
(
p_
pl
,
"marq-marquee"
,
val
);
var_Set
(
p_
inp
,
"marq-marquee"
,
val
);
}
else
{
val
.
psz_string
=
""
;
var_Set
(
p_
pl
,
"marq-marquee"
,
val
);
var_Set
(
p_
inp
,
"marq-marquee"
,
val
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-x"
)
)
...
...
@@ -887,7 +895,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
i_int
=
atoi
(
newval
.
psz_string
);
var_Set
(
p_
pl
,
"marq-x"
,
val
);
var_Set
(
p_
inp
,
"marq-x"
,
val
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-y"
)
)
...
...
@@ -895,7 +903,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
i_int
=
atoi
(
newval
.
psz_string
);
var_Set
(
p_
pl
,
"marq-y"
,
val
);
var_Set
(
p_
inp
,
"marq-y"
,
val
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"marq-timeout"
)
)
...
...
@@ -903,7 +911,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
val
.
i_int
=
atoi
(
newval
.
psz_string
);
var_Set
(
p_
pl
,
"marq-timeout"
,
val
);
var_Set
(
p_
inp
,
"marq-timeout"
,
val
);
}
}
...
...
@@ -916,6 +924,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
}
vlc_object_release
(
p_pl
);
vlc_object_release
(
p_inp
);
return
VLC_SUCCESS
;
}
...
...
modules/video_filter/marq.c
View file @
67c571cf
...
...
@@ -94,7 +94,7 @@ static int CreateFilter( vlc_object_t *p_this )
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
;
vlc_object_t
*
p_
pl
;
vlc_object_t
*
p_
input
;
/* Allocate structure */
p_sys
=
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
...
...
@@ -105,24 +105,24 @@ static int CreateFilter( vlc_object_t *p_this )
}
/* hook to the playlist */
p_
pl
=
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIS
T
,
FIND_ANYWHERE
);
if
(
!
p_
pl
)
p_
input
=
vlc_object_find
(
p_this
,
VLC_OBJECT_INPU
T
,
FIND_ANYWHERE
);
if
(
!
p_
input
)
{
return
VLC_ENOOBJ
;
}
/* p_access->p_libvlc p_demux->p_libvlc */
p_sys
->
i_xoff
=
var_CreateGetInteger
(
p_
pl
,
"marq-x"
);
p_sys
->
i_yoff
=
var_CreateGetInteger
(
p_
pl
,
"marq-y"
);
p_sys
->
i_timeout
=
var_CreateGetInteger
(
p_
pl
,
"marq-timeout"
);
p_sys
->
psz_marquee
=
var_CreateGetString
(
p_
pl
,
"marq-marquee"
);
p_sys
->
i_xoff
=
var_CreateGetInteger
(
p_
input
,
"marq-x"
);
p_sys
->
i_yoff
=
var_CreateGetInteger
(
p_
input
,
"marq-y"
);
p_sys
->
i_timeout
=
var_CreateGetInteger
(
p_
input
,
"marq-timeout"
);
p_sys
->
psz_marquee
=
var_CreateGetString
(
p_
input
,
"marq-marquee"
);
var_AddCallback
(
p_
pl
,
"marq-x"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_
pl
,
"marq-y"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_
pl
,
"marq-marquee"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_
pl
,
"marq-timeout"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_
input
,
"marq-x"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_
input
,
"marq-y"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_
input
,
"marq-marquee"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_
input
,
"marq-timeout"
,
MarqueeCallback
,
p_sys
);
vlc_object_release
(
p_
pl
);
vlc_object_release
(
p_
input
);
/* Misc init */
p_filter
->
pf_sub_filter
=
Filter
;
...
...
@@ -138,22 +138,22 @@ static void DestroyFilter( vlc_object_t *p_this )
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
vlc_object_t
*
p_
pl
;
vlc_object_t
*
p_
input
;
if
(
p_sys
->
psz_marquee
)
free
(
p_sys
->
psz_marquee
);
free
(
p_sys
);
/* Delete the marquee variables from playlist */
p_
pl
=
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIS
T
,
FIND_ANYWHERE
);
if
(
!
p_
pl
)
p_
input
=
vlc_object_find
(
p_this
,
VLC_OBJECT_INPU
T
,
FIND_ANYWHERE
);
if
(
!
p_
input
)
{
return
;
}
var_Destroy
(
p_
pl
,
"marq-marquee"
);
var_Destroy
(
p_
pl
,
"marq-x"
);
var_Destroy
(
p_
pl
,
"marq-y"
);
var_Destroy
(
p_
pl
,
"marq-timeout"
);
vlc_object_release
(
p_
pl
);
var_Destroy
(
p_
input
,
"marq-marquee"
);
var_Destroy
(
p_
input
,
"marq-x"
);
var_Destroy
(
p_
input
,
"marq-y"
);
var_Destroy
(
p_
input
,
"marq-timeout"
);
vlc_object_release
(
p_
input
);
}
/****************************************************************************
...
...
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