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
c205ecf9
Commit
c205ecf9
authored
Sep 27, 2008
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile fix after
d228fdd2
parent
d626fdc4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
21 deletions
+26
-21
modules/control/dbus.c
modules/control/dbus.c
+14
-12
modules/misc/notify/notify.c
modules/misc/notify/notify.c
+2
-1
modules/misc/notify/telepathy.c
modules/misc/notify/telepathy.c
+4
-3
modules/misc/notify/xosd.c
modules/misc/notify/xosd.c
+4
-3
modules/video_filter/atmo/atmo.cpp
modules/video_filter/atmo/atmo.cpp
+2
-2
No files found.
modules/control/dbus.c
View file @
c205ecf9
...
...
@@ -168,7 +168,7 @@ DBUS_METHOD( PositionGet )
playlist_t
*
p_playlist
=
pl_Hold
(
((
vlc_object_t
*
)
p_this
)
);
PL_LOCK
;
input_thread_t
*
p_input
=
p
_playlist
->
p_input
;
input_thread_t
*
p_input
=
p
laylist_CurrentInput
(
p_playlist
)
;
if
(
!
p_input
)
i_pos
=
0
;
...
...
@@ -207,7 +207,7 @@ DBUS_METHOD( PositionSet )
}
p_playlist
=
pl_Hold
(
((
vlc_object_t
*
)
p_this
)
);
PL_LOCK
;
input_thread_t
*
p_input
=
p
_playlist
->
p_input
;
input_thread_t
*
p_input
=
p
laylist_CurrentInput
(
p_playlist
)
;
if
(
p_input
)
{
...
...
@@ -320,7 +320,7 @@ DBUS_METHOD( Play )
playlist_t
*
p_playlist
=
pl_Hold
(
(
vlc_object_t
*
)
p_this
);
PL_LOCK
;
input_thread_t
*
p_input
=
p_playlist
->
p_input
;
input_thread_t
*
p_input
=
playlist_CurrentInput
(
p_playlist
)
;
if
(
p_input
)
vlc_object_hold
(
p_input
);
PL_UNLOCK
;
...
...
@@ -344,8 +344,9 @@ DBUS_METHOD( GetCurrentMetadata )
OUT_ARGUMENTS
;
playlist_t
*
p_playlist
=
pl_Hold
(
(
vlc_object_t
*
)
p_this
);
PL_LOCK
;
if
(
p_playlist
->
status
.
p_item
)
GetInputMeta
(
p_playlist
->
status
.
p_item
->
p_input
,
&
args
);
playlist_item_t
*
p_item
=
playlist_CurrentPlayingItem
(
p_playlist
);
if
(
p_item
)
GetInputMeta
(
p_item
->
p_input
,
&
args
);
PL_UNLOCK
;
pl_Release
(
(
vlc_object_t
*
)
p_this
);
REPLY_SEND
;
...
...
@@ -804,7 +805,7 @@ static void Close ( vlc_object_t *p_this )
var_DelCallback
(
p_playlist
,
"repeat"
,
StatusChangeEmit
,
p_intf
);
var_DelCallback
(
p_playlist
,
"loop"
,
StatusChangeEmit
,
p_intf
);
p_input
=
p
_playlist
->
p_input
;
p_input
=
p
laylist_CurrentInput
(
p_playlist
)
;
if
(
p_input
)
{
vlc_object_hold
(
p_input
);
...
...
@@ -997,7 +998,7 @@ static int TrackChange( vlc_object_t *p_this, const char *psz_var,
p_sys
->
b_meta_read
=
false
;
p_playlist
=
pl_Hold
(
p_intf
);
p_input
=
p
_playlist
->
p_input
;
p_input
=
p
laylist_CurrentInput
(
p_playlist
)
;
if
(
!
p_input
)
{
...
...
@@ -1040,14 +1041,15 @@ static int UpdateCaps( intf_thread_t* p_intf, bool b_playlist_locked )
if
(
p_playlist
->
current
.
i_size
>
0
)
i_caps
|=
CAPS_CAN_PLAY
|
CAPS_CAN_GO_PREV
|
CAPS_CAN_GO_NEXT
;
if
(
p_playlist
->
p_input
)
input_thread_t
*
p_input
=
playlist_CurrentInput
(
p_playlist
);
if
(
p_input
)
{
/* XXX: if UpdateCaps() is called too early, these are
* unconditionnaly true */
if
(
var_GetBool
(
p_
playlist
->
p_
input
,
"can-pause"
)
)
if
(
var_GetBool
(
p_input
,
"can-pause"
)
)
i_caps
|=
CAPS_CAN_PAUSE
;
if
(
var_GetBool
(
p_
playlist
->
p_
input
,
"seekable"
)
)
if
(
var_GetBool
(
p_input
,
"seekable"
)
)
i_caps
|=
CAPS_CAN_SEEK
;
}
...
...
@@ -1166,7 +1168,7 @@ static int MarshalStatus( intf_thread_t* p_intf, DBusMessageIter* args,
i_state
=
2
;
p_input
=
p
_playlist
->
p_input
;
p_input
=
p
laylist_CurrentInput
(
p_playlist
)
;
if
(
p_input
)
{
var_Get
(
p_input
,
"state"
,
&
val
);
...
...
modules/misc/notify/notify.c
View file @
c205ecf9
...
...
@@ -144,7 +144,8 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
char
*
psz_artist
=
NULL
;
char
*
psz_album
=
NULL
;
char
*
psz_arturl
=
NULL
;
input_thread_t
*
p_input
=
((
playlist_t
*
)
p_this
)
->
p_input
;
input_thread_t
*
p_input
=
playlist_CurrentInput
(
(
playlist_t
*
)
p_this
);
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
param
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
...
...
modules/misc/notify/telepathy.c
View file @
c205ecf9
...
...
@@ -137,12 +137,13 @@ static void Close( vlc_object_t *p_this )
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_this
);
input_thread_t
*
p_input
=
NULL
;
PL_LOCK
;
var_DelCallback
(
p_playlist
,
"item-change"
,
ItemChange
,
p_intf
);
var_DelCallback
(
p_playlist
,
"playlist-current"
,
ItemChange
,
p_intf
);
if
(
p_playlist
->
p_input
)
var_DelCallback
(
p_
playlist
->
p_
input
,
"state"
,
StateChange
,
p_intf
);
if
(
(
p_input
=
playlist_CurrentInput
(
p_playlist
))
)
var_DelCallback
(
p_input
,
"state"
,
StateChange
,
p_intf
);
PL_UNLOCK
;
pl_Release
(
p_this
);
...
...
@@ -190,7 +191,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
p_intf
->
p_sys
->
i_item_changes
++
;
}
p_input
=
p
_playlist
->
p_input
;
p_input
=
p
laylist_CurrentInput
(
p_playlist
)
;
if
(
!
p_input
)
return
VLC_SUCCESS
;
vlc_object_hold
(
p_input
);
...
...
modules/misc/notify/xosd.c
View file @
c205ecf9
...
...
@@ -234,19 +234,20 @@ static void Run( intf_thread_t *p_intf )
}
free
(
psz_display
);
psz_display
=
NULL
;
if
(
p_playlist
->
status
.
i_status
==
PLAYLIST_STOPPED
)
int
i_status
=
playlist_Status
(
p_playlist
);
if
(
i_status
==
PLAYLIST_STOPPED
)
{
psz_display
=
strdup
(
_
(
"Stop"
));
pl_Release
(
p_intf
);
}
else
if
(
p_playlist
->
status
.
i_status
==
PLAYLIST_PAUSED
)
else
if
(
i_status
==
PLAYLIST_PAUSED
)
{
psz_display
=
strdup
(
_
(
"Pause"
));
pl_Release
(
p_intf
);
}
else
{
p_item
=
p
_playlist
->
status
.
p_item
;
p_item
=
p
laylist_CurrentPlayingItem
(
p_playlist
)
;
p_input
=
p_item
->
p_input
;
pl_Release
(
p_intf
);
...
...
modules/video_filter/atmo/atmo.cpp
View file @
c205ecf9
...
...
@@ -1930,7 +1930,7 @@ static int StateCallback( vlc_object_t *p_this, char const *psz_cmd,
static
void
AddStateVariableCallback
(
filter_t
*
p_filter
)
{
playlist_t
*
p_playlist
=
pl_Hold
(
p_filter
);
input_thread_t
*
p_input
=
p
_playlist
->
p_input
;
input_thread_t
*
p_input
=
p
laylist_CurrentInput
(
p_playlist
)
;
if
(
p_input
)
{
var_AddCallback
(
p_input
,
"state"
,
StateCallback
,
p_filter
);
...
...
@@ -1948,7 +1948,7 @@ static void AddStateVariableCallback(filter_t *p_filter)
static
void
DelStateVariableCallback
(
filter_t
*
p_filter
)
{
playlist_t
*
p_playlist
=
pl_Hold
(
p_filter
);
input_thread_t
*
p_input
=
p
_playlist
->
p_input
;
input_thread_t
*
p_input
=
p
laylist_CurrentInput
(
p_playlist
)
;
if
(
p_input
)
{
var_DelCallback
(
p_input
,
"state"
,
StateCallback
,
p_filter
);
...
...
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