Skip to content

Commit

Permalink
refactor: rename builtins to supported
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 8, 2024
1 parent e1165ee commit 16a658b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/preferences_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ mod imp {
{
profile::all()
} else {
profile::builtins()
profile::supported()
};
let profiles_model = gio::ListStore::new::<BoxedProfile>();
if settings.profile().is_none() {
Expand Down
12 changes: 6 additions & 6 deletions src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ use crate::{element_properties::ElementConfig, utils};

/// Returns all profiles including experimental ones.
pub fn all() -> Vec<Box<dyn Profile>> {
builtins().into_iter().chain(experimental::all()).collect()
supported().into_iter().chain(experimental::all()).collect()
}

/// Returns only builtin (supported) profiles.
pub fn builtins() -> Vec<Box<dyn Profile>> {
/// Returns only supported profiles.
pub fn supported() -> Vec<Box<dyn Profile>> {
vec![
Box::new(WebMProfile),
Box::new(Mp4Profile),
Expand Down Expand Up @@ -552,11 +552,11 @@ mod tests {
}

#[test]
fn builtin_profiles() {
fn supported_profiles() {
gst::init().unwrap();
gstgif::plugin_register_static().unwrap();

for profile in builtins() {
for profile in supported() {
let pipeline = gst::Pipeline::new();
let dummy_video_src = gst::ElementFactory::make("fakesrc").build().unwrap();
let dummy_audio_src = gst::ElementFactory::make("fakesrc").build().unwrap();
Expand All @@ -581,7 +581,7 @@ mod tests {

#[test]
fn is_experimental_test() {
for profile in builtins() {
for profile in supported() {
assert!(!profile.is_experimental());
}

Expand Down

0 comments on commit 16a658b

Please sign in to comment.