[vlc-commits] vt_utils: rename cvpxpool_get_cvpx

Thomas Guillem git at videolan.org
Tue Sep 12 16:48:47 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 12 14:57:58 2017 +0200| [1ce7bacd5336e2a39c1237bc06777b4c076dea23] | committer: Thomas Guillem

vt_utils: rename cvpxpool_get_cvpx

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

 modules/codec/vt_utils.c          | 2 +-
 modules/codec/vt_utils.h          | 2 +-
 modules/video_chroma/cvpx.c       | 2 +-
 modules/video_filter/ci_filters.m | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/codec/vt_utils.c b/modules/codec/vt_utils.c
index 104def75c5..70ee711097 100644
--- a/modules/codec/vt_utils.c
+++ b/modules/codec/vt_utils.c
@@ -277,7 +277,7 @@ cvpxpool_create(const video_format_t *fmt, unsigned count)
 }
 
 CVPixelBufferRef
-cvpxpool_get_cvpx(CVPixelBufferPoolRef pool)
+cvpxpool_new_cvpx(CVPixelBufferPoolRef pool)
 {
     CVPixelBufferRef cvpx;
     CVReturn err = CVPixelBufferPoolCreatePixelBuffer(NULL, pool, &cvpx);
diff --git a/modules/codec/vt_utils.h b/modules/codec/vt_utils.h
index aaba4a5c5b..5423c1d501 100644
--- a/modules/codec/vt_utils.h
+++ b/modules/codec/vt_utils.h
@@ -73,6 +73,6 @@ CVPixelBufferPoolRef cvpxpool_create(const video_format_t *fmt, unsigned count);
 /*
  * Get a cvpx buffer from a pool
  */
-CVPixelBufferRef cvpxpool_get_cvpx(CVPixelBufferPoolRef pool);
+CVPixelBufferRef cvpxpool_new_cvpx(CVPixelBufferPoolRef pool);
 
 #endif
diff --git a/modules/video_chroma/cvpx.c b/modules/video_chroma/cvpx.c
index 752a547dbe..e4621818b4 100644
--- a/modules/video_chroma/cvpx.c
+++ b/modules/video_chroma/cvpx.c
@@ -113,7 +113,7 @@ static picture_t *CVPX_buffer_new(filter_t *p_sw_filter)
     filter_t *p_filter = p_sw_filter->owner.sys;
     filter_sys_t *p_sys = p_filter->p_sys;
 
-    CVPixelBufferRef cvpx = cvpxpool_get_cvpx(p_sys->pool);
+    CVPixelBufferRef cvpx = cvpxpool_new_cvpx(p_sys->pool);
     if (cvpx == NULL)
         return NULL;
 
diff --git a/modules/video_filter/ci_filters.m b/modules/video_filter/ci_filters.m
index f522a76f70..f058b98b3e 100644
--- a/modules/video_filter/ci_filters.m
+++ b/modules/video_filter/ci_filters.m
@@ -302,7 +302,7 @@ Filter(filter_t *filter, picture_t *src)
     if (!dst)
         goto error;
 
-    CVPixelBufferRef cvpx = cvpxpool_get_cvpx(ctx->cvpx_pool);
+    CVPixelBufferRef cvpx = cvpxpool_new_cvpx(ctx->cvpx_pool);
     if (!cvpx)
         goto error;
 
@@ -417,7 +417,7 @@ static picture_t *
 CVPX_buffer_new(filter_t *converter)
 {
     CVPixelBufferPoolRef pool = converter->owner.sys;
-    CVPixelBufferRef cvpx = cvpxpool_get_cvpx(pool);
+    CVPixelBufferRef cvpx = cvpxpool_new_cvpx(pool);
     if (!cvpx)
         return NULL;
 



More information about the vlc-commits mailing list