mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
treewide: fix issues found by codespell
This commit is contained in:
parent
4d94ba843c
commit
5913eb098c
10 changed files with 26 additions and 26 deletions
|
|
@ -55,7 +55,7 @@ struct device {
|
|||
struct udev_device *dev;
|
||||
unsigned int accessible:1;
|
||||
unsigned int ignored:1;
|
||||
unsigned int emited:1;
|
||||
unsigned int emitted:1;
|
||||
};
|
||||
|
||||
struct impl {
|
||||
|
|
@ -314,7 +314,7 @@ static int emit_object_info(struct impl *this, struct device *device)
|
|||
}
|
||||
info.props = &SPA_DICT_INIT(items, n_items);
|
||||
spa_device_emit_object_info(&this->hooks, id, &info);
|
||||
device->emited = true;
|
||||
device->emitted = true;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -334,7 +334,7 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic
|
|||
{
|
||||
uint32_t id;
|
||||
struct device *device;
|
||||
bool emited;
|
||||
bool emitted;
|
||||
|
||||
if ((id = get_device_id(this, dev)) == SPA_ID_INVALID)
|
||||
return;
|
||||
|
|
@ -357,9 +357,9 @@ static void process_device(struct impl *this, uint32_t action, struct udev_devic
|
|||
case ACTION_REMOVE:
|
||||
if (device == NULL)
|
||||
return;
|
||||
emited = device->emited;
|
||||
emitted = device->emitted;
|
||||
remove_device(this, device);
|
||||
if (emited)
|
||||
if (emitted)
|
||||
spa_device_emit_object_info(&this->hooks, id, NULL);
|
||||
break;
|
||||
}
|
||||
|
|
@ -410,7 +410,7 @@ static void impl_on_notify_events(struct spa_source *source)
|
|||
continue;
|
||||
if ((device = find_device(this, id)) == NULL)
|
||||
continue;
|
||||
if (!device->emited)
|
||||
if (!device->emitted)
|
||||
process_device(this, ACTION_ADD, device->dev);
|
||||
}
|
||||
/* /dev/ might have been removed */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue