mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Media (Linux): be compatible with signed media length
Fixes Chrome support
This commit is contained in:
@@ -95,8 +95,8 @@ static bool parseMprisMetadata(FFDBusData* data, DBusMessageIter* rootIterator,
|
||||
}
|
||||
}
|
||||
} else if (ffStrEquals(mpris, "length")) {
|
||||
uint64_t length = 0; // microseconds
|
||||
if (ffDBusGetUint(data, &dictIterator, &length)) {
|
||||
int64_t length = 0; // microseconds
|
||||
if (ffDBusGetInt(data, &dictIterator, &length) && length > 0) {
|
||||
result->length = (uint32_t) (length / 1000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user