[vlc-devel] [PATCH] libvlc: Rename VLCOpenGLVideoViewEmbedding to VLCVideoViewEmbedding

Jean-Baptiste Kempf jb at videolan.org
Sat Feb 23 18:22:14 CET 2019


OK, please apply.

On Sat, 23 Feb 2019, at 18:13, Marvin Scholz wrote:
> There is nothing specific to OpenGL about this protocol.
> ---
>  include/vlc/libvlc_media_player.h | 6 +++---
>  modules/video_output/macosx.m     | 6 +++---
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/include/vlc/libvlc_media_player.h 
> b/include/vlc/libvlc_media_player.h
> index 2e4aff7a2bc..e1d758956eb 100644
> --- a/include/vlc/libvlc_media_player.h
> +++ b/include/vlc/libvlc_media_player.h
> @@ -558,11 +558,11 @@ int libvlc_video_set_output_callbacks( 
> libvlc_media_player_t *mp,
>   *
>   * Use the vout called "macosx".
>   *
> - * The drawable is an NSObject that follow the 
> VLCOpenGLVideoViewEmbedding
> + * The drawable is an NSObject that follow the VLCVideoViewEmbedding
>   * protocol:
>   *
>   * @code{.m}
> - * \@protocol VLCOpenGLVideoViewEmbedding <NSObject>
> + * \@protocol VLCVideoViewEmbedding <NSObject>
>   * - (void)addVoutSubview:(NSView *)view;
>   * - (void)removeVoutSubview:(NSView *)view;
>   * \@end
> @@ -585,7 +585,7 @@ int libvlc_video_set_output_callbacks( 
> libvlc_media_player_t *mp,
>   *
>   * \param p_mi the Media Player
>   * \param drawable the drawable that is either an NSView or an object 
> following
> - * the VLCOpenGLVideoViewEmbedding protocol.
> + * the VLCVideoViewEmbedding protocol.
>   */
>  LIBVLC_API void libvlc_media_player_set_nsobject ( 
> libvlc_media_player_t *p_mi, void * drawable );
>  
> diff --git a/modules/video_output/macosx.m 
> b/modules/video_output/macosx.m
> index 528aff44d75..d09f1810e5f 100644
> --- a/modules/video_output/macosx.m
> +++ b/modules/video_output/macosx.m
> @@ -85,7 +85,7 @@ static void PictureRender (vout_display_t *vd, 
> picture_t *pic, subpicture_t *sub
>  /**
>   * Obj-C protocol declaration that drawable-nsobject should follow
>   */
> - at protocol VLCOpenGLVideoViewEmbedding <NSObject>
> + at protocol VLCVideoViewEmbedding <NSObject>
>  - (void)addVoutSubview:(NSView *)view;
>  - (void)removeVoutSubview:(NSView *)view;
>  @end
> @@ -103,7 +103,7 @@ - (void)setVoutFlushing:(BOOL)flushing;
>  struct vout_display_sys_t
>  {
>      VLCOpenGLVideoView *glView;
> -    id<VLCOpenGLVideoViewEmbedding> container;
> +    id<VLCVideoViewEmbedding> container;
>  
>      vout_window_t *embed;
>      vlc_gl_t *gl;
> @@ -196,7 +196,7 @@ static int Open (vout_display_t *vd, const 
> vout_display_cfg_t *cfg,
>                                            withObject:[NSValue 
> valueWithPointer:parentView]
>                                         waitUntilDone:NO];
>          } else {
> -            msg_Err(vd, "Invalid drawable-nsobject object. 
> drawable-nsobject must either be an NSView or comply to the @protocol 
> VLCOpenGLVideoViewEmbedding.");
> +            msg_Err(vd, "Invalid drawable-nsobject object. 
> drawable-nsobject must either be an NSView or comply to the @protocol 
> VLCVideoViewEmbedding.");
>              goto error;
>          }
>  
> -- 
> 2.17.2 (Apple Git-113)
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list