mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
mediafoundation: Port to IID_PPV_ARGS
Make code short where possible Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2375>
This commit is contained in:
parent
f9699b2444
commit
d4f8e3cf53
2 changed files with 3 additions and 5 deletions
|
@ -286,7 +286,7 @@ gst_mf_source_reader_open (GstMFSourceReader * self, IMFActivate * activate)
|
|||
ComPtr < IMFMediaSource > source;
|
||||
ComPtr < IMFAttributes > attr;
|
||||
|
||||
hr = activate->ActivateObject (IID_IMFMediaSource, (void **) &source);
|
||||
hr = activate->ActivateObject (IID_PPV_ARGS (&source));
|
||||
if (!gst_mf_result (hr))
|
||||
return FALSE;
|
||||
|
||||
|
|
|
@ -905,8 +905,7 @@ gst_mf_transform_open_internal (GstMFTransformOpenData * data)
|
|||
data->ret = FALSE;
|
||||
|
||||
gst_mf_transform_close (object);
|
||||
hr = object->activate->ActivateObject (IID_IMFTransform,
|
||||
(void **) &object->transform);
|
||||
hr = object->activate->ActivateObject (IID_PPV_ARGS (&object->transform));
|
||||
|
||||
if (!gst_mf_result (hr)) {
|
||||
GST_WARNING_OBJECT (object, "Couldn't open MFT");
|
||||
|
@ -955,8 +954,7 @@ gst_mf_transform_open_internal (GstMFTransformOpenData * data)
|
|||
object->output_id = 0;
|
||||
}
|
||||
|
||||
hr = object->transform->QueryInterface (IID_ICodecAPI,
|
||||
(void **) &object->codec_api);
|
||||
hr = object->transform->QueryInterface (IID_PPV_ARGS (&object->codec_api));
|
||||
if (!gst_mf_result (hr)) {
|
||||
GST_WARNING_OBJECT (object, "ICodecAPI is unavailable");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue