summaryrefslogtreecommitdiff
path: root/sys/applemedia/vtenc.c
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2015-01-28 00:43:09 +1100
committerAlessandro Decina <alessandro.d@gmail.com>2015-01-30 00:34:08 +1100
commit8734abb1ce02745a9fe39ea0b32e56aef4041989 (patch)
tree64562654f85ad719a208525b21a640787f60c777 /sys/applemedia/vtenc.c
parent5f547c56001c25fcb352ed735ca79c0ff344322c (diff)
downloadgstreamer-plugins-bad-8734abb1ce02745a9fe39ea0b32e56aef4041989.tar.gz
applemedia: don't call CVPixelBufferLockBaseAddress when doing texture sharing
When doing texture sharing we don't need to call CVPixelBufferLockBaseAddress to map the buffer in CPU. This cuts about 10% relative cpu time from a vtdec ! glimagesink pipeline.
Diffstat (limited to 'sys/applemedia/vtenc.c')
-rw-r--r--sys/applemedia/vtenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c
index 269172b36..94bc32d4b 100644
--- a/sys/applemedia/vtenc.c
+++ b/sys/applemedia/vtenc.c
@@ -1272,7 +1272,7 @@ gst_vtenc_enqueue_buffer (void *outputCallbackRefCon,
/* We are dealing with block buffers here, so we don't need
* to enable the use of the video meta API on the core media buffer */
- frame->output_buffer = gst_core_media_buffer_new (sampleBuffer, FALSE);
+ frame->output_buffer = gst_core_media_buffer_new (sampleBuffer, FALSE, TRUE);
g_async_queue_push (self->cur_outframes, frame);