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
bb37f1c4
Commit
bb37f1c4
authored
Feb 25, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
telepathy: compute test only one time
(and strlen("item-current") == 12)
parent
441e2609
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/misc/notify/telepathy.c
modules/misc/notify/telepathy.c
+3
-2
No files found.
modules/misc/notify/telepathy.c
View file @
bb37f1c4
...
@@ -173,9 +173,10 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
...
@@ -173,9 +173,10 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
playlist_t
*
p_playlist
=
(
playlist_t
*
)
p_this
;
playlist_t
*
p_playlist
=
(
playlist_t
*
)
p_this
;
char
*
psz_buf
=
NULL
;
char
*
psz_buf
=
NULL
;
input_thread_t
*
p_input
;
input_thread_t
*
p_input
;
bool
b_is_item_current
=
!
strncmp
(
"item-current"
,
psz_var
,
12
);
/* Don't update Telepathy presence each time an item has been preparsed */
/* Don't update Telepathy presence each time an item has been preparsed */
if
(
!
strncmp
(
"item-current"
,
psz_var
,
16
)
)
if
(
b_is_item_current
)
{
/* stores the current input item id */
{
/* stores the current input item id */
p_intf
->
p_sys
->
i_id
=
newval
.
i_int
;
p_intf
->
p_sys
->
i_id
=
newval
.
i_int
;
p_intf
->
p_sys
->
i_item_changes
=
0
;
p_intf
->
p_sys
->
i_item_changes
=
0
;
...
@@ -209,7 +210,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
...
@@ -209,7 +210,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
}
}
}
}
if
(
!
strncmp
(
"item-current"
,
psz_var
,
16
)
)
if
(
b_is_item_current
)
var_AddCallback
(
p_input
,
"state"
,
StateChange
,
p_intf
);
var_AddCallback
(
p_input
,
"state"
,
StateChange
,
p_intf
);
/* We format the string to be displayed */
/* We format the string to be displayed */
...
...
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