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
5e840db9
Commit
5e840db9
authored
Dec 15, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: automatically resume from pause when uncorked
(derived from commit ab500430e6dfd02ae4e19ecb9a3d76f3f9486522)
parent
7f525a92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
src/playlist/engine.c
src/playlist/engine.c
+14
-12
No files found.
src/playlist/engine.c
View file @
5e840db9
...
...
@@ -83,18 +83,20 @@ static int CorksCallback( vlc_object_t *obj, char const *var,
if
(
!
old
.
i_int
==
!
cur
.
i_int
)
return
VLC_SUCCESS
;
/* nothing to do */
if
(
cur
.
i_int
)
{
if
(
var_InheritBool
(
obj
,
"playlist-cork"
)
)
{
msg_Dbg
(
obj
,
"corked"
);
if
(
!
var_InheritBool
(
obj
,
"playlist-cork"
)
)
return
VLC_SUCCESS
;
input_thread_t
*
input
=
playlist_CurrentInput
(
pl
);
if
(
input
==
NULL
)
return
VLC_SUCCESS
;
bool
playing
=
var_GetInteger
(
input
,
"state"
)
==
PLAYING_S
;
vlc_object_release
(
input
);
if
(
playing
==
!
cur
.
i_int
)
return
VLC_SUCCESS
;
msg_Dbg
(
obj
,
"%scorked"
,
cur
.
i_int
?
""
:
"un"
);
playlist_Pause
(
pl
);
}
else
msg_Dbg
(
obj
,
"not corked"
);
}
else
msg_Dbg
(
obj
,
"uncorked"
);
(
void
)
var
;
(
void
)
dummy
;
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