hip: Add missing #ifdef
So that it compiles without gstreamer-gl. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9289>
This commit is contained in:
parent
d236538d28
commit
af63e991ec
@ -1279,6 +1279,7 @@ gst_hip_memory_copy_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
||||
auto self = GST_HIP_MEMORY_COPY (trans);
|
||||
auto priv = self->priv;
|
||||
|
||||
#ifdef HAVE_GST_GL
|
||||
if (priv->transfer_type == TransferType::GL_TO_HIP ||
|
||||
priv->transfer_type == TransferType::HIP_TO_GL) {
|
||||
if (gst_hip_memory_copy_gl_copy (self, inbuf, outbuf)) {
|
||||
@ -1290,6 +1291,8 @@ gst_hip_memory_copy_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
||||
"GL interop copy failed, fallback to system copy");
|
||||
priv->transfer_type = TransferType::SYSTEM;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GST_CUDA
|
||||
if (priv->transfer_type == TransferType::HIP_TO_CUDA ||
|
||||
priv->transfer_type == TransferType::CUDA_TO_HIP) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user