}
static gboolean
-gst_msdk_find_preferred_caps_feature (GstMsdkDec * thiz, const char *feature)
+srcpad_can_dmabuf (GstMsdkDec * thiz)
{
gboolean ret = FALSE;
GstCaps *caps, *out_caps;
|| out_caps == caps)
goto done;
- if (_gst_caps_has_feature (out_caps, feature))
+ if (_gst_caps_has_feature (out_caps, GST_CAPS_FEATURE_MEMORY_DMABUF))
ret = TRUE;
done:
gst_caps_unref (output_state->caps);
output_state->caps = gst_video_info_to_caps (&output_state->info);
- if (gst_msdk_find_preferred_caps_feature (thiz,
- GST_CAPS_FEATURE_MEMORY_DMABUF))
+ if (srcpad_can_dmabuf (thiz))
gst_caps_set_features (output_state->caps, 0,
gst_caps_features_new (GST_CAPS_FEATURE_MEMORY_DMABUF, NULL));