camera: Public API functions should say "Format" not "Spec" to match audio.

This commit is contained in:
Ryan C. Gordon
2023-12-16 16:12:19 -05:00
parent f87d536229
commit 87e7046fca
8 changed files with 21 additions and 21 deletions

View File

@@ -284,7 +284,7 @@ int main(int argc, char **argv)
{
SDL_CameraSpec spec;
if (SDL_GetCameraSpec(device, &spec) == 0) {
if (SDL_GetCameraFormat(device, &spec) == 0) {
SDL_Log("Read spec: size=%d x %d format=%s",
spec.width, spec.height, SDL_GetPixelFormatName(spec.format));
} else {

View File

@@ -94,7 +94,7 @@ int main(int argc, char **argv)
return 1;
}
if (SDL_GetCameraSpec(camera, &spec) < 0) {
if (SDL_GetCameraFormat(camera, &spec) < 0) {
SDL_Log("Couldn't get camera spec: %s", SDL_GetError());
return 1;
}