mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 22:35:41 +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 {
|
||||
|
||||
Reference in New Issue
Block a user