Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
a8b61130
Commit
a8b61130
authored
Mar 26, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DBus: don't use the demux object
parent
13581503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
modules/control/dbus.c
modules/control/dbus.c
+4
-12
No files found.
modules/control/dbus.c
View file @
a8b61130
...
...
@@ -53,7 +53,6 @@
#include <vlc_meta.h>
#include <vlc_input.h>
#include <vlc_playlist.h>
#include <vlc_demux.h>
/*****************************************************************************
* Local prototypes.
...
...
@@ -989,19 +988,12 @@ static int UpdateCaps( intf_thread_t* p_intf )
if
(
p_playlist
->
p_input
)
{
/* XXX: if UpdateCaps() is called too early, these are
* unconditionnaly true */
if
(
var_GetBool
(
p_playlist
->
p_input
,
"can-pause"
)
)
i_caps
|=
CAPS_CAN_PAUSE
;
demux_t
*
p_demux
=
(
demux_t
*
)
vlc_object_find
(
p_playlist
->
p_input
,
VLC_OBJECT_DEMUX
,
FIND_CHILD
);
if
(
p_demux
)
{
vlc_bool_t
b_can_seek
;
if
(
!
stream_Control
(
p_demux
->
s
,
STREAM_CAN_SEEK
,
&
b_can_seek
)
&&
b_can_seek
)
i_caps
|=
CAPS_CAN_SEEK
;
vlc_object_release
(
p_demux
);
}
if
(
var_GetBool
(
p_playlist
->
p_input
,
"seekable"
)
)
i_caps
|=
CAPS_CAN_SEEK
;
}
PL_UNLOCK
;
...
...
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