tests: cudafilter: actually check for cudascale
authorKamal Mostafa <kamal@whence.com>
Sat, 17 Feb 2024 21:19:15 +0000 (13:19 -0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 21 Feb 2024 10:16:02 +0000 (10:16 +0000)
Actually check for availability of 'cudascale' instead of accidentally
checking for 'cudadownload' twice.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3327
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6158>

subprojects/gst-plugins-bad/tests/check/elements/cudafilter.c

index 8c3fd5061f8a0d5edd3903c8a50cf60684f59175..753c1e65c58490c6a571b24c821d877bba68cc34 100644 (file)
@@ -130,7 +130,7 @@ check_cuda_available (void)
   }
   gst_object_unref (elem);
 
-  elem = gst_element_factory_make ("cudadownload", NULL);
+  elem = gst_element_factory_make ("cudascale", NULL);
   if (!elem) {
     GST_WARNING ("cudascale is not available, possibly driver load failure");
     return FALSE;