[vlc-devel] [PATCH 09/17] Picture: Use vlc_frame_t for core use constitency
Denis Charmet
typx at dinauz.org
Mon Apr 22 19:10:38 CEST 2019
---
lib/picture.c | 5 ++---
lib/picture_internal.h | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/lib/picture.c b/lib/picture.c
index 0a4541baf7..6d960ea617 100644
--- a/lib/picture.c
+++ b/lib/picture.c
@@ -29,7 +29,6 @@
#include <vlc_atomic.h>
#include <vlc_picture.h>
-#include <vlc_block.h>
#include <vlc_fs.h>
#include "picture_internal.h"
@@ -38,7 +37,7 @@ struct libvlc_picture_t
{
vlc_atomic_rc_t rc;
libvlc_picture_type_t type;
- block_t* converted;
+ vlc_frame_t* converted;
video_format_t fmt;
libvlc_time_t time;
};
@@ -89,7 +88,7 @@ void libvlc_picture_release( libvlc_picture_t* pic )
return;
video_format_Clean( &pic->fmt );
if ( pic->converted )
- block_Release( pic->converted );
+ vlc_frame_Release( pic->converted );
free( pic );
}
diff --git a/lib/picture_internal.h b/lib/picture_internal.h
index 83b913f0f3..8a0531745d 100644
--- a/lib/picture_internal.h
+++ b/lib/picture_internal.h
@@ -35,7 +35,7 @@
* \return An opaque libvlc_picture_t
*
* The picture refcount is left untouched by this function, but is converted to
- * the required format and stored as a block_t
+ * the required format and stored as a vlc_frame_t
* The returned picture must be released through libvlc_picture_release
*/
libvlc_picture_t* libvlc_picture_new( vlc_object_t* p_obj, picture_t* p_pic,
--
2.20.1
More information about the vlc-devel
mailing list