Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d6bdaf03
Commit
d6bdaf03
authored
Sep 28, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
telepathy: avoid flooding the bus when playing some special inputs.
parent
4531113a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
modules/misc/notify/notify.c
modules/misc/notify/notify.c
+1
-1
modules/misc/notify/telepathy.c
modules/misc/notify/telepathy.c
+12
-2
No files found.
modules/misc/notify/notify.c
View file @
d6bdaf03
...
...
@@ -193,7 +193,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
psz_title
,
psz_artist
);
else
snprintf
(
psz_tmp
,
MAX_LENGTH
,
"<b>%s</b>"
,
psz_title
);
free
(
psz_title
);
free
(
psz_artist
);
free
(
psz_album
);
...
...
modules/misc/notify/telepathy.c
View file @
d6bdaf03
...
...
@@ -40,6 +40,7 @@ struct intf_sys_t
char
*
psz_format
;
DBusConnection
*
p_conn
;
int
i_id
;
int
i_item
-
changes
;
};
/*****************************************************************************
...
...
@@ -162,9 +163,18 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
if
(
!
strncmp
(
"playlist-current"
,
psz_var
,
16
)
)
{
/* stores the current input item id */
p_intf
->
p_sys
->
i_id
=
newval
.
i_int
;
p_intf
->
p_sys
->
i_item
-
changes
=
0
;
}
else
{
if
(
newval
.
i_int
!=
p_intf
->
p_sys
->
i_id
)
/* "item-change" */
return
VLC_SUCCESS
;
/* some variable bitrate inputs call "item-change callbacks each time
* their length is updated, that is several times per second. */
if
(
p_intf
->
p_sys
->
i_item
-
changes
>
5
)
return
VLC_SUCCESS
;
p_intf
->
p_sys
->
i_item
-
changes
++
;
}
else
if
(
newval
.
i_int
!=
p_intf
->
p_sys
->
i_id
)
/* "item-change" */
return
VLC_SUCCESS
;
playlist_t
*
p_playlist
=
pl_Yield
(
p_this
);
...
...
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