Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Steve Lhomme
vlc
Commits
be3414d0
Commit
be3414d0
authored
Dec 17, 2017
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sid: provide test-and-clear-flags control
parent
fc3f7c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
modules/demux/sid.cpp
modules/demux/sid.cpp
+13
-1
No files found.
modules/demux/sid.cpp
View file @
be3414d0
...
...
@@ -71,6 +71,7 @@ struct demux_sys_t
date_t
pts
;
int
last_title
;
bool
title_changed
;
};
...
...
@@ -279,12 +280,23 @@ static int Control (demux_t *demux, int query, va_list args)
return
VLC_EGENERIC
;
sys
->
last_title
=
i_idx
;
demux
->
info
.
i_update
=
INPUT_UPDATE_TITLE
;
sys
->
title_changed
=
true
;
msg_Dbg
(
demux
,
"set song %i"
,
i_idx
);
return
VLC_SUCCESS
;
}
case
DEMUX_TEST_AND_CLEAR_FLAGS
:
{
unsigned
*
restrict
flags
=
va_arg
(
args
,
unsigned
*
);
if
((
*
flags
&
INPUT_UPDATE_TITLE
)
&&
sys
->
title_changed
)
{
*
flags
=
INPUT_UPDATE_TITLE
;
sys
->
title_changed
=
false
;
}
else
*
flags
=
0
;
return
VLC_SUCCESS
;
}
case
DEMUX_GET_TITLE
:
*
va_arg
(
args
,
int
*
)
=
sys
->
last_title
;
return
VLC_SUCCESS
;
...
...
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