summaryrefslogtreecommitdiff
path: root/sys/applemedia/vtdec.c
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2015-01-22 13:17:11 +1100
committerAlessandro Decina <alessandro.d@gmail.com>2015-01-30 00:34:08 +1100
commite91989136ad2cbb2400ca1959979f9907f360fac (patch)
treee5fc42259722c539d4c91ea23eb9a3add363befe /sys/applemedia/vtdec.c
parentc7284a6390339f6ec39a59b43ad709678b5c1e1d (diff)
downloadgstreamer-plugins-bad-e91989136ad2cbb2400ca1959979f9907f360fac.tar.gz
applemedia: corevideobuffer: make mapping the CVPixelBuffer in CPU optional
Mapping is not necessary and impacts performance when doing texture sharing with downstream
Diffstat (limited to 'sys/applemedia/vtdec.c')
-rw-r--r--sys/applemedia/vtdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c
index 15385187e..590328614 100644
--- a/sys/applemedia/vtdec.c
+++ b/sys/applemedia/vtdec.c
@@ -640,7 +640,9 @@ gst_vtdec_session_output_callback (void *decompression_output_ref_con,
* segment.format being undefined */
goto release;
}
- buf = gst_core_video_buffer_new (image_buffer, &state->info);
+ buf =
+ gst_core_video_buffer_new (image_buffer, &state->info,
+ vtdec->texture_cache == NULL);
gst_video_codec_state_unref (state);
gst_buffer_copy_into (buf, frame->input_buffer,