mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
clapper-app: Add GStreamer pipeline preview
Allow to preview GStreamer pipeline while playing content. This makes it easier to check what is used underneath.
This commit is contained in:
@@ -36,6 +36,8 @@ struct _ClapperAppInfoWindow
|
||||
GtkWidget *astreams_list;
|
||||
GtkWidget *sstreams_list;
|
||||
|
||||
GtkWidget *pipeline_button;
|
||||
|
||||
ClapperPlayer *player;
|
||||
};
|
||||
|
||||
@@ -174,6 +176,10 @@ clapper_app_info_window_init (ClapperAppInfoWindow *self)
|
||||
gtk_widget_remove_css_class (self->vstreams_list, "view");
|
||||
gtk_widget_remove_css_class (self->astreams_list, "view");
|
||||
gtk_widget_remove_css_class (self->sstreams_list, "view");
|
||||
|
||||
#ifdef HAVE_GRAPHVIZ
|
||||
gtk_widget_set_visible (self->pipeline_button, TRUE);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -256,6 +262,7 @@ clapper_app_info_window_class_init (ClapperAppInfoWindowClass *klass)
|
||||
gtk_widget_class_bind_template_child (widget_class, ClapperAppInfoWindow, vstreams_list);
|
||||
gtk_widget_class_bind_template_child (widget_class, ClapperAppInfoWindow, astreams_list);
|
||||
gtk_widget_class_bind_template_child (widget_class, ClapperAppInfoWindow, sstreams_list);
|
||||
gtk_widget_class_bind_template_child (widget_class, ClapperAppInfoWindow, pipeline_button);
|
||||
|
||||
gtk_widget_class_bind_template_callback (widget_class, media_duration_closure);
|
||||
gtk_widget_class_bind_template_callback (widget_class, playback_element_name_closure);
|
||||
|
Reference in New Issue
Block a user