[vlc-devel] [PATCH v2 1/2] aout/ios: Remove forward declarations

Thomas Guillem thomas at gllm.fr
Thu Jun 13 11:25:23 CEST 2019


OK for the set.

On Thu, Jun 13, 2019, at 11:21, Marvin Scholz wrote:
> Removes Open/Close forward declarations and move the module
> descriptor to the bottom of the file.
> ---
>  modules/audio_output/audiounit_ios.m | 27 ++++++++++++---------------
>  1 file changed, 12 insertions(+), 15 deletions(-)
> 
> diff --git a/modules/audio_output/audiounit_ios.m 
> b/modules/audio_output/audiounit_ios.m
> index ea555c0c14..b4f10bef2a 100644
> --- a/modules/audio_output/audiounit_ios.m
> +++ b/modules/audio_output/audiounit_ios.m
> @@ -31,21 +31,6 @@
>  #import <AVFoundation/AVFoundation.h>
>  #import <mach/mach_time.h>
>  
> -#pragma mark -
> -#pragma mark local prototypes & module descriptor
> -
> -static int  Open  (vlc_object_t *);
> -static void Close (vlc_object_t *);
> -
> -vlc_module_begin ()
> -    set_shortname("audiounit_ios")
> -    set_description("AudioUnit output for iOS")
> -    set_capability("audio output", 101)
> -    set_category(CAT_AUDIO)
> -    set_subcategory(SUBCAT_AUDIO_AOUT)
> -    set_callbacks(Open, Close)
> -vlc_module_end ()
> -
>  #pragma mark -
>  #pragma mark private declarations
>  
> @@ -647,3 +632,15 @@ static int DeviceSelect(audio_output_t *p_aout, 
> const char *psz_id)
>      ca_Open(aout);
>      return VLC_SUCCESS;
>  }
> +
> +#pragma mark -
> +#pragma mark module descriptor
> +
> +vlc_module_begin ()
> +    set_shortname("audiounit_ios")
> +    set_description("AudioUnit output for iOS")
> +    set_capability("audio output", 101)
> +    set_category(CAT_AUDIO)
> +    set_subcategory(SUBCAT_AUDIO_AOUT)
> +    set_callbacks(Open, Close)
> +vlc_module_end ()
> -- 
> 2.20.1 (Apple Git-117)
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list