mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-02 05:39:20 +00:00
camera: Public API functions should say "Format" not "Spec" to match audio.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user