5 #include "Utils/typedefs.h" 11 void config_queue(GstElement* queue, gulong max_time_ms=100);
12 void config_sink(GstElement* sink);
13 void config_lame(GstElement* lame);
15 bool tee_connect(GstElement* tee, GstElement* queue,
const QString& queue_name);
16 bool has_element(GstBin* bin, GstElement* element);
17 bool test_and_error(
void* element,
const QString& errorstr);
18 bool test_and_error_bool(
bool b,
const QString& errorstr);
19 bool create_element(GstElement** elem,
const QString& elem_name);
20 bool create_element(GstElement** elem,
const QString& elem_name,
const QString& name);
22 void set_passthrough(GstElement* e,
bool b);
24 MilliSeconds get_duration_ms(GstElement* element);
25 MilliSeconds get_position_ms(GstElement* element);
26 MilliSeconds get_time_to_go(GstElement* element);
28 GstState get_state(GstElement* element);
29 bool set_state(GstElement* element, GstState state);
31 bool check_plugin_available(
const gchar* str);
32 bool check_lame_available();
33 bool check_pitch_available();
35 bool create_bin(GstElement** bin,
const QList<GstElement*>& elements,
const QString& prefix);
37 bool create_ghost_pad(GstBin* bin, GstElement* e);
44 #endif // ENGINEUTILS_H Definition: AbstractEngine.h:33
Definition: org_mpris_media_player2_adaptor.h:20