Music Hub  ..
A session-wide music playback service
gstreamer::Bus Class Reference

#include <bus.h>

+ Collaboration diagram for gstreamer::Bus:

Classes

struct  Message
 

Public Member Functions

 Bus (GstBus *bus)
 
 ~Bus ()
 
void set_bus (GstBus *bus)
 

Static Public Member Functions

static GstBusSyncReply sync_handler (GstBus *bus, GstMessage *msg, gpointer data)
 
static gboolean bus_watch_handler (GstBus *bus, GstMessage *msg, gpointer data)
 

Public Attributes

GstBus * bus
 
core::Signal< Messageon_new_message
 
core::Signal< Messageon_new_message_async
 
guint bus_watch_id
 

Detailed Description

Definition at line 35 of file bus.h.

Constructor & Destructor Documentation

◆ Bus()

gstreamer::Bus::Bus ( GstBus *  bus)
inline

Definition at line 300 of file bus.h.

References set_bus().

+ Here is the call graph for this function:

◆ ~Bus()

gstreamer::Bus::~Bus ( )
inline

Definition at line 305 of file bus.h.

References bus, and bus_watch_id.

Member Function Documentation

◆ bus_watch_handler()

static gboolean gstreamer::Bus::bus_watch_handler ( GstBus *  bus,
GstMessage *  msg,
gpointer  data 
)
inlinestatic

Definition at line 286 of file bus.h.

References gstreamer::Bus::Message::message.

Referenced by set_bus().

◆ set_bus()

void gstreamer::Bus::set_bus ( GstBus *  bus)
inline

Definition at line 311 of file bus.h.

References bus_watch_handler(), bus_watch_id, and sync_handler().

Referenced by Bus().

+ Here is the call graph for this function:

◆ sync_handler()

static GstBusSyncReply gstreamer::Bus::sync_handler ( GstBus *  bus,
GstMessage *  msg,
gpointer  data 
)
inlinestatic

Definition at line 271 of file bus.h.

References gstreamer::Bus::Message::message, and gstreamer::Bus::Message::type.

Referenced by set_bus().

Member Data Documentation

◆ bus

GstBus* gstreamer::Bus::bus

Definition at line 331 of file bus.h.

Referenced by ~Bus().

◆ bus_watch_id

guint gstreamer::Bus::bus_watch_id

Definition at line 334 of file bus.h.

Referenced by set_bus(), and ~Bus().

◆ on_new_message

core::Signal<Message> gstreamer::Bus::on_new_message

Definition at line 332 of file bus.h.

Referenced by gstreamer::MetaDataExtractor::meta_data_for_track_with_uri().

◆ on_new_message_async

core::Signal<Message> gstreamer::Bus::on_new_message_async

Definition at line 333 of file bus.h.

Referenced by gstreamer::Playbin::Playbin().


The documentation for this class was generated from the following file: