Skip to content

Commit

Permalink
Fix sdl2 metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Mar 2, 2018
1 parent 7bf5da8 commit a11ece1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/modules/sdl/consumer_sdl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ parameters:
minimum: 0
maximum: 1
default: 1
widget: checkbox
widget: checkbox

28 changes: 11 additions & 17 deletions src/modules/sdl2/consumer_sdl2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,49 @@ tags:
- Audio
- Video
description: >
Simple DirectMedia Layer audio and video output module.
Simple DirectMedia Layer audio and video output module
parameters:
- identifier: resolution
title: Resolution
type: string
description: The size of the window as WxH pixels.
description: The size of the window as WxH pixels
argument: yes
required: no

- identifier: volume
title: Volume
type: float
description: Audio level factor.
description: Audio level factor
mutable: yes

- identifier: video_off
title: Video off
type: integer
description: If 1, disable video output
type: boolean
description: Disable video output
mutable: yes
minimum: 0
maximum: 1
default: 0
widget: checkbox

- identifier: audio_off
title: Audio off
type: integer
description: If 1, disable audio output
type: boolean
description: Disable audio output
mutable: yes
minimum: 0
maximum: 1
default: 0
widget: checkbox

- identifier: audio_buffer
title: Audio buffer
type: integer
description: Size of the sdl audio buffer.
description: Size of the SDL audio buffer
mutable: yes
default: 2048
minimum: 128

- identifier: scrub_audio
title: Audio scrubbing
type: integer
description: If enabled, sound is played even when the speed is not normal.
type: boolean
description: Play sound even when the speed is not normal.
mutable: yes
minimum: 0
maximum: 1
default: 1
widget: checkbox
widget: checkbox
2 changes: 1 addition & 1 deletion src/modules/sdl2/factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern mlt_consumer consumer_sdl_audio_init( mlt_profile profile, mlt_service_ty
static mlt_properties metadata( mlt_service_type type, const char *id, void *data )
{
char file[ PATH_MAX ];
snprintf( file, PATH_MAX, "%s/sdl/%s", mlt_environment( "MLT_DATA" ), (char*) data );
snprintf( file, PATH_MAX, "%s/sdl2/%s", mlt_environment( "MLT_DATA" ), (char*) data );
return mlt_properties_parse_yaml( file );
}

Expand Down

0 comments on commit a11ece1

Please sign in to comment.