Lines Matching refs:new_device
362 AVDeviceInfo *new_device = NULL; in ff_alsa_get_device_list() local
373 new_device = av_mallocz(sizeof(AVDeviceInfo)); in ff_alsa_get_device_list()
374 if (!new_device) { in ff_alsa_get_device_list()
378 new_device->device_name = av_strdup(name); in ff_alsa_get_device_list()
380 new_device->device_description = av_strdup(&tmp[1]); in ff_alsa_get_device_list()
382 new_device->device_description = av_strdup(descr); in ff_alsa_get_device_list()
383 if (!new_device->device_description || !new_device->device_name) { in ff_alsa_get_device_list()
388 &device_list->nb_devices, new_device)) < 0) { in ff_alsa_get_device_list()
391 if (!strcmp(new_device->device_name, "default")) in ff_alsa_get_device_list()
393 new_device = NULL; in ff_alsa_get_device_list()
401 if (new_device) { in ff_alsa_get_device_list()
402 av_free(new_device->device_description); in ff_alsa_get_device_list()
403 av_free(new_device->device_name); in ff_alsa_get_device_list()
404 av_free(new_device); in ff_alsa_get_device_list()