diff --git a/plugins/linux-pipewire/camera-portal.c b/plugins/linux-pipewire/camera-portal.c index 81fc9dede6c58c..360d0b86adc8f2 100644 --- a/plugins/linux-pipewire/camera-portal.c +++ b/plugins/linux-pipewire/camera-portal.c @@ -690,7 +690,6 @@ static void framerate_list(struct camera_device *dev, uint32_t pixelformat, const struct spa_rectangle *resolution, obs_property_t *prop) { - g_autoptr(GHashTable) framerates_map = NULL; g_autoptr(GArray) framerates = NULL; struct param *p; obs_data_t *data; @@ -703,9 +702,7 @@ static void framerate_list(struct camera_device *dev, uint32_t pixelformat, struct obs_pw_video_format obs_pw_video_format; enum spa_choice_type choice; const struct spa_pod_prop *prop; - struct spa_pod_parser pod_parser; struct spa_rectangle this_resolution; - struct spa_fraction framerate; struct spa_pod *framerate_pod; uint32_t media_subtype; uint32_t media_type; @@ -1259,7 +1256,6 @@ static const char *pipewire_camera_get_name(void *data) static void *pipewire_camera_create(obs_data_t *settings, obs_source_t *source) { struct camera_portal_source *camera_source; - bool set; camera_source = bzalloc(sizeof(struct camera_portal_source)); camera_source->source = source; diff --git a/plugins/linux-pipewire/pipewire.c b/plugins/linux-pipewire/pipewire.c index 5ea666215cd62f..0bf2d2ecec3c1f 100644 --- a/plugins/linux-pipewire/pipewire.c +++ b/plugins/linux-pipewire/pipewire.c @@ -721,7 +721,6 @@ static void process_video_sync(obs_pipewire_stream *obs_pw_stream) { obs_pipewire *obs_pw = obs_pw_stream->obs_pw; struct spa_meta_cursor *cursor; - uint32_t drm_format; struct spa_meta_header *header; struct spa_meta_region *region; struct spa_meta_videotransform *video_transform; @@ -1313,6 +1312,8 @@ uint32_t obs_pipewire_stream_get_width(obs_pipewire_stream *obs_pw_stream) case SPA_META_TRANSFORMATION_270: return has_crop ? obs_pw_stream->crop.height : obs_pw_stream->format.info.raw.size.height; + default: + return 0; } } @@ -1338,6 +1339,8 @@ uint32_t obs_pipewire_stream_get_height(obs_pipewire_stream *obs_pw_stream) case SPA_META_TRANSFORMATION_270: return has_crop ? obs_pw_stream->crop.width : obs_pw_stream->format.info.raw.size.width; + default: + return 0; } }