[vlc-commits] lib: typedef libvlc_thumbnailer_seek_speed_t enum

Olivier Aubert git at videolan.org
Mon Nov 12 17:51:31 CET 2018


vlc | branch: master | Olivier Aubert <contact at olivieraubert.net> | Mon Nov 12 17:51:15 2018 +0100| [71cb852338887cc95b9fc98f51f61d037f3c45d4] | committer: Olivier Aubert

lib: typedef libvlc_thumbnailer_seek_speed_t enum

It is more consistent with the way of using/defining enums in the rest of the libvlc API.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71cb852338887cc95b9fc98f51f61d037f3c45d4
---

 include/vlc/libvlc_media.h | 12 ++++++------
 lib/media.c                |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index 9475019b92..c566a69037 100644
--- a/include/vlc/libvlc_media.h
+++ b/include/vlc/libvlc_media.h
@@ -807,11 +807,11 @@ libvlc_media_type_t libvlc_media_get_type( libvlc_media_t *p_md );
  */
 typedef struct libvlc_media_thumbnail_request_t libvlc_media_thumbnail_request_t;
 
-enum libvlc_thumbnailer_seek_speed
+typedef enum libvlc_thumbnailer_seek_speed_t
 {
     libvlc_media_thumbnail_seek_precise,
     libvlc_media_thumbnail_seek_fast,
-};
+} libvlc_thumbnailer_seek_speed_t;
 
 /**
  * \brief libvlc_media_get_thumbnail_by_time Start an asynchronous thumbnail generation
@@ -821,7 +821,7 @@ enum libvlc_thumbnailer_seek_speed
  *
  * \param md media descriptor object
  * \param time The time at which the thumbnail should be generated
- * \param speed The seeking speed \sa{enum libvlc_thumbnailer_seek_speed}
+ * \param speed The seeking speed \sa{libvlc_thumbnailer_seek_speed_t}
  * \param width The thumbnail width
  * \param height the thumbnail height
  * \param picture_type The thumbnail picture type \sa{libvlc_picture_type_t}
@@ -837,7 +837,7 @@ enum libvlc_thumbnailer_seek_speed
 LIBVLC_API libvlc_media_thumbnail_request_t*
 libvlc_media_thumbnail_request_by_time( libvlc_media_t *md,
                                         libvlc_time_t time,
-                                        enum libvlc_thumbnailer_seek_speed speed,
+                                        libvlc_thumbnailer_seek_speed_t speed,
                                         unsigned int width, unsigned int height,
                                         libvlc_picture_type_t picture_type,
                                         libvlc_time_t timeout );
@@ -850,7 +850,7 @@ libvlc_media_thumbnail_request_by_time( libvlc_media_t *md,
  *
  * \param md media descriptor object
  * \param pos The position at which the thumbnail should be generated
- * \param speed The seeking speed \sa{enum libvlc_thumbnailer_seek_speed}
+ * \param speed The seeking speed \sa{libvlc_thumbnailer_seek_speed_t}
  * \param width The thumbnail width
  * \param height the thumbnail height
  * \param picture_type The thumbnail picture type \sa{libvlc_picture_type_t}
@@ -866,7 +866,7 @@ libvlc_media_thumbnail_request_by_time( libvlc_media_t *md,
 LIBVLC_API libvlc_media_thumbnail_request_t*
 libvlc_media_thumbnail_request_by_pos( libvlc_media_t *md,
                                        float pos,
-                                       enum libvlc_thumbnailer_seek_speed speed,
+                                       libvlc_thumbnailer_seek_speed_t speed,
                                        unsigned int width, unsigned int height,
                                        libvlc_picture_type_t picture_type,
                                        libvlc_time_t timeout );
diff --git a/lib/media.c b/lib/media.c
index b4970c847b..cf3bd2c1b0 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -1124,7 +1124,7 @@ static void media_on_thumbnail_ready( void* data, picture_t* thumbnail )
 
 libvlc_media_thumbnail_request_t*
 libvlc_media_thumbnail_request_by_time( libvlc_media_t *md, libvlc_time_t time,
-                                        enum libvlc_thumbnailer_seek_speed speed,
+                                        libvlc_thumbnailer_seek_speed_t speed,
                                         unsigned int width, unsigned int height,
                                         libvlc_picture_type_t picture_type,
                                         libvlc_time_t timeout )
@@ -1160,7 +1160,7 @@ libvlc_media_thumbnail_request_by_time( libvlc_media_t *md, libvlc_time_t time,
 
 libvlc_media_thumbnail_request_t*
 libvlc_media_thumbnail_request_by_pos( libvlc_media_t *md, float pos,
-                                       enum libvlc_thumbnailer_seek_speed speed,
+                                       libvlc_thumbnailer_seek_speed_t speed,
                                        unsigned int width, unsigned int height,
                                        libvlc_picture_type_t picture_type,
                                        libvlc_time_t timeout )



More information about the vlc-commits mailing list