mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
clapper-gtk: video: Use "scaletempo" by default
Do not require applications to import GStreamer and their devs to learn its basics just to set this single element. Similarly as ClapperGtkVideo sets "clappersink" during construction, it can also set "scaletempo" as this is the most common choice for an audio filter. Elements can still be changed like before if desired by setting corresponding player properties.
This commit is contained in:
@@ -1220,7 +1220,6 @@ clapper_app_window_constructed (GObject *object)
|
||||
ClapperPlayer *player = clapper_app_window_get_player (self);
|
||||
ClapperQueue *queue = clapper_player_get_queue (player);
|
||||
ClapperGtkExtraMenuButton *button;
|
||||
GstElement *element;
|
||||
AdwStyleManager *manager;
|
||||
|
||||
static const GActionEntry win_entries[] = {
|
||||
@@ -1266,9 +1265,6 @@ clapper_app_window_constructed (GObject *object)
|
||||
|
||||
/* FIXME: Allow setting sink/filter elements from prefs window
|
||||
* (this should include parsing bin descriptions) */
|
||||
element = gst_element_factory_make ("scaletempo", NULL);
|
||||
if (G_LIKELY (element != NULL))
|
||||
clapper_player_set_audio_filter (player, element);
|
||||
|
||||
clapper_player_set_autoplay (player, TRUE);
|
||||
|
||||
|
Reference in New Issue
Block a user