OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27efc30
)
audio/media: Fix not updating position
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Tue, 23 Jul 2013 12:52:31 +0000
(15:52 +0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 24 Jul 2013 04:44:18 +0000
(21:44 -0700)
The status may not be 'playing' as MPRIS documents it as 'Playing'
instead, to make this less prone to typos like this the code now
uses strcasecmp.
profiles/audio/media.c
patch
|
blob
|
history
diff --git
a/profiles/audio/media.c
b/profiles/audio/media.c
index
f1ad439
..
715d49c
100644
(file)
--- a/
profiles/audio/media.c
+++ b/
profiles/audio/media.c
@@
-1131,7
+1131,7
@@
static uint32_t get_position(void *user_data)
double timedelta;
uint32_t sec, msec;
- if (
g_strcmp0(mp->status, "p
laying") != 0)
+ if (
mp->status == NULL || strcasecmp(mp->status, "P
laying") != 0)
return mp->position;
timedelta = g_timer_elapsed(mp->timer, NULL);