mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
mfvideoenc: Fix UWP build
Add missing GST_MF_HAVE_D3D11 define guard Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2185>
This commit is contained in:
parent
2616fcfbac
commit
08b792d24c
1 changed files with 2 additions and 0 deletions
|
@ -293,6 +293,7 @@ gst_mf_video_enc_set_format (GstVideoEncoder * enc, GstVideoCodecState * state)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if GST_MF_HAVE_D3D11
|
||||||
if (self->device_manager) {
|
if (self->device_manager) {
|
||||||
if (!gst_mf_transform_set_device_manager (self->transform,
|
if (!gst_mf_transform_set_device_manager (self->transform,
|
||||||
self->device_manager)) {
|
self->device_manager)) {
|
||||||
|
@ -302,6 +303,7 @@ gst_mf_video_enc_set_format (GstVideoEncoder * enc, GstVideoCodecState * state)
|
||||||
GST_DEBUG_OBJECT (self, "set device manager done");
|
GST_DEBUG_OBJECT (self, "set device manager done");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
hr = MFCreateMediaType (out_type.GetAddressOf ());
|
hr = MFCreateMediaType (out_type.GetAddressOf ());
|
||||||
if (!gst_mf_result (hr))
|
if (!gst_mf_result (hr))
|
||||||
|
|
Loading…
Reference in a new issue