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
f96c9561
Commit
f96c9561
authored
Sep 29, 2004
by
Mark Moriarty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Destroy marq-timeout on exit, rename switch to "marq-marquee"
parent
41d66821
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/video_filter/marq.c
modules/video_filter/marq.c
+8
-7
No files found.
modules/video_filter/marq.c
View file @
f96c9561
...
@@ -78,7 +78,7 @@ struct filter_sys_t
...
@@ -78,7 +78,7 @@ struct filter_sys_t
vlc_module_begin
();
vlc_module_begin
();
set_capability
(
"sub filter"
,
0
);
set_capability
(
"sub filter"
,
0
);
set_callbacks
(
CreateFilter
,
DestroyFilter
);
set_callbacks
(
CreateFilter
,
DestroyFilter
);
add_string
(
"marquee"
,
"Marquee"
,
NULL
,
MSG_TEXT
,
MSG_LONGTEXT
,
VLC_FALSE
);
add_string
(
"marq
-marq
uee"
,
"Marquee"
,
NULL
,
MSG_TEXT
,
MSG_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"marq-x"
,
0
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"marq-x"
,
0
,
NULL
,
POSX_TEXT
,
POSX_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"marq-y"
,
0
,
NULL
,
POSY_TEXT
,
POSY_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"marq-y"
,
0
,
NULL
,
POSY_TEXT
,
POSY_LONGTEXT
,
VLC_FALSE
);
add_integer
(
"marq-timeout"
,
0
,
NULL
,
TIMEOUT_TEXT
,
TIMEOUT_LONGTEXT
,
add_integer
(
"marq-timeout"
,
0
,
NULL
,
TIMEOUT_TEXT
,
TIMEOUT_LONGTEXT
,
...
@@ -110,16 +110,16 @@ static int CreateFilter( vlc_object_t *p_this )
...
@@ -110,16 +110,16 @@ static int CreateFilter( vlc_object_t *p_this )
{
{
return
VLC_ENOOBJ
;
return
VLC_ENOOBJ
;
}
}
/* p_access->p_libvlc p_demux->p_libvlc */
p_sys
->
i_xoff
=
var_CreateGetInteger
(
p_pl
,
"marq-x"
);
p_sys
->
i_xoff
=
var_CreateGetInteger
(
p_pl
,
"marq-x"
);
p_sys
->
i_yoff
=
var_CreateGetInteger
(
p_pl
,
"marq-y"
);
p_sys
->
i_yoff
=
var_CreateGetInteger
(
p_pl
,
"marq-y"
);
p_sys
->
i_timeout
=
var_CreateGetInteger
(
p_pl
,
"marq-timeout"
);
p_sys
->
i_timeout
=
var_CreateGetInteger
(
p_pl
,
"marq-timeout"
);
p_sys
->
psz_marquee
=
var_CreateGetString
(
p_pl
,
"marquee"
);
p_sys
->
psz_marquee
=
var_CreateGetString
(
p_pl
,
"marq
-marq
uee"
);
var_AddCallback
(
p_pl
,
"marq-x"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_pl
,
"marq-x"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_pl
,
"marq-y"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_pl
,
"marq-y"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_pl
,
"marquee"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_pl
,
"marq
-marq
uee"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_pl
,
"marq-timeout"
,
MarqueeCallback
,
p_sys
);
var_AddCallback
(
p_pl
,
"marq-timeout"
,
MarqueeCallback
,
p_sys
);
vlc_object_release
(
p_pl
);
vlc_object_release
(
p_pl
);
...
@@ -149,9 +149,10 @@ static void DestroyFilter( vlc_object_t *p_this )
...
@@ -149,9 +149,10 @@ static void DestroyFilter( vlc_object_t *p_this )
{
{
return
;
return
;
}
}
var_Destroy
(
p_pl
,
"marquee"
);
var_Destroy
(
p_pl
,
"marq
-marq
uee"
);
var_Destroy
(
p_pl
,
"marq-x"
);
var_Destroy
(
p_pl
,
"marq-x"
);
var_Destroy
(
p_pl
,
"marq_y"
);
var_Destroy
(
p_pl
,
"marq-y"
);
var_Destroy
(
p_pl
,
"marq-timeout"
);
vlc_object_release
(
p_pl
);
vlc_object_release
(
p_pl
);
}
}
...
@@ -219,7 +220,7 @@ static int MarqueeCallback( vlc_object_t *p_this, char const *psz_var,
...
@@ -219,7 +220,7 @@ static int MarqueeCallback( vlc_object_t *p_this, char const *psz_var,
{
{
filter_sys_t
*
p_sys
=
(
filter_sys_t
*
)
p_data
;
filter_sys_t
*
p_sys
=
(
filter_sys_t
*
)
p_data
;
if
(
!
strncmp
(
psz_var
,
"marquee"
,
7
)
)
if
(
!
strncmp
(
psz_var
,
"marq
-marq
uee"
,
7
)
)
{
{
if
(
p_sys
->
psz_marquee
)
free
(
p_sys
->
psz_marquee
);
if
(
p_sys
->
psz_marquee
)
free
(
p_sys
->
psz_marquee
);
p_sys
->
psz_marquee
=
strdup
(
newval
.
psz_string
);
p_sys
->
psz_marquee
=
strdup
(
newval
.
psz_string
);
...
...
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