#include <gstreamermm.h>
#include <glibmm/main.h>
{
if (message->get_source())
{
}
switch (message->get_message_type())
{
{
break;
}
main_loop->quit();
break;
{
break;
}
default:
break;
}
return true;
}
int main(int argc, char *argv[])
{
try
{
pipeline->add(source)->add(sink);
}
{
return 1;
}
try
{
source->link(sink);
}
{
}
main_loop->run();
return 0;
}
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
virtual const char * what() const noexcept
static Glib::RefPtr< MainLoop > create(bool is_running=false)
static RefPtr cast_static(const RefPtr< T_CastFrom > &src) noexcept
static Glib::RefPtr< Gst::Element > create_element(const Glib::ustring &factory_name, const Glib::ustring &name)
Create a new element of the type defined by the given element factory.
static Glib::RefPtr< Pipeline > create()
Create a new pipeline with a unique generic name.
pointer_functor0< T_return > ptr_fun(T_return(*_A_func)())
Glib::ustring get_name(State state)
Gets a string representing the given state.
void init(int &argc, char **&argv)
Initializes gstreamermm parsing command line arguments.
@ MESSAGE_STATE_CHANGED
A state change happened.
Definition: message.h:229
@ MESSAGE_ERROR
An error occurred.
Definition: message.h:224
@ MESSAGE_EOS
End-of-stream reached in a pipeline.
Definition: message.h:223
@ STATE_NULL
The nullptr state or initial state of an element.
Definition: enums.h:96
@ STATE_PLAYING
The element is PLAYING, the Gst::Clock is running and the data is flowing.
Definition: enums.h:99