diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2020-04-29 15:12:36 -0400 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-09-28 17:59:35 +0000 |
commit | 235e7d2ff96c43c80cbf99607a706940d9b49382 (patch) | |
tree | 462e5d9a899c1caa8d4c165bf5ffe8c00c75105a /ext/lv2/gstlv2filter.c | |
parent | 5f1b2b1d323d3af40b6bf40c62eacd11fd962ce0 (diff) | |
download | gstreamer-plugins-bad-235e7d2ff96c43c80cbf99607a706940d9b49382.tar.gz |
lv2: Namespace global variables and explicitly make them private
And fix a LV2_PORT_GROUPS__rearLeft/LV2_PORT_GROUPS__rearRight typo
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1609>
Diffstat (limited to 'ext/lv2/gstlv2filter.c')
-rw-r--r-- | ext/lv2/gstlv2filter.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/ext/lv2/gstlv2filter.c b/ext/lv2/gstlv2filter.c index 03181e5c9..c26d84e83 100644 --- a/ext/lv2/gstlv2filter.c +++ b/ext/lv2/gstlv2filter.c @@ -183,37 +183,37 @@ static GstAudioChannelPosition gst_lv2_filter_role_to_position (LilvNode * role) { /* Front. Mono and left/right are mututally exclusive */ - if (lilv_node_equals (role, center_role)) { + if (lilv_node_equals (role, gst_lv2_center_role_node)) { return GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER; - } else if (lilv_node_equals (role, left_role)) { + } else if (lilv_node_equals (role, gst_lv2_left_role_node)) { return GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT; - } else if (lilv_node_equals (role, right_role)) { + } else if (lilv_node_equals (role, gst_lv2_right_role_node)) { return GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT; /* Rear. Left/right and center are mututally exclusive */ - } else if (lilv_node_equals (role, rear_center_role)) { + } else if (lilv_node_equals (role, gst_lv2_rear_center_role_node)) { return GST_AUDIO_CHANNEL_POSITION_REAR_CENTER; - } else if (lilv_node_equals (role, rear_left_role)) { + } else if (lilv_node_equals (role, gst_lv2_rear_left_role_node)) { return GST_AUDIO_CHANNEL_POSITION_REAR_LEFT; - } else if (lilv_node_equals (role, rear_right_role)) { + } else if (lilv_node_equals (role, gst_lv2_rear_right_role_node)) { return GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT; /* Subwoofer/low-frequency-effects */ - } else if (lilv_node_equals (role, lfe_role)) { + } else if (lilv_node_equals (role, gst_lv2_lfe_role_node)) { return GST_AUDIO_CHANNEL_POSITION_LFE1; /* Center front speakers. Center and left/right_of_center * are mutually exclusive */ - } else if (lilv_node_equals (role, center_left_role)) { + } else if (lilv_node_equals (role, gst_lv2_center_left_role_node)) { return GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER; - } else if (lilv_node_equals (role, center_right_role)) { + } else if (lilv_node_equals (role, gst_lv2_center_right_role_node)) { return GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER; /* sides */ - } else if (lilv_node_equals (role, side_left_role)) { + } else if (lilv_node_equals (role, gst_lv2_side_left_role_node)) { return GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT; - } else if (lilv_node_equals (role, side_right_role)) { + } else if (lilv_node_equals (role, gst_lv2_side_right_role_node)) { return GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT; } @@ -531,7 +531,8 @@ gst_lv2_filter_init (GstLV2Filter * self, GstLV2FilterClass * klass) { gst_lv2_init (&self->lv2, &klass->lv2); - if (!lilv_plugin_has_feature (klass->lv2.plugin, in_place_broken_pred)) + if (!lilv_plugin_has_feature (klass->lv2.plugin, + gst_lv2_in_place_broken_pred_node)) gst_base_transform_set_in_place (GST_BASE_TRANSFORM (self), TRUE); } |