diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
index 0f7044b7ad..66d1c0c0ca 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
@@ -88,9 +88,6 @@ def get_opengl_cmdline_list(switch_name, options, d):
         for option in options.split():
             if bb.utils.contains('PACKAGECONFIG', option, True, False, d):
                 selected_options += [option]
-    if selected_options:
-        return '-D' + switch_name + '=' + ','.join(selected_options)
-    else:
-        return ''
+    return '-D' + switch_name + '=' + ','.join(selected_options)
 
 CVE_PRODUCT += "gst-plugins-base"
