Add gstreamer source element

Add a source gstreamer element
Expose error in context
Make it possible to set the source in the error state
Add properties to a stream and use those to get a source-output
Fix signal for new-buffer
Attach the socket source to the thread default mainloop
Make subscribe cancellable.
Propagate state and error in context.
Add bus handler for v4l2 source
Use negotiated properties to set capsfilter in v4l2
Fix subscribe in test-client
This commit is contained in:
Wim Taymans 2015-04-28 17:36:44 +02:00
parent e151150cad
commit 592e99a317
14 changed files with 934 additions and 38 deletions

View file

@ -75,7 +75,6 @@ on_stream_notify (GObject *gobject,
}
}
static void
on_state_notify (GObject *gobject,
GParamSpec *pspec,
@ -94,11 +93,14 @@ on_state_notify (GObject *gobject,
case PV_CONTEXT_STATE_READY:
{
PvStream *stream;
GVariantBuilder builder;
stream = pv_stream_new (c, "test");
stream = pv_stream_new (c, "test", NULL);
g_signal_connect (stream, "notify::state", (GCallback) on_stream_notify, stream);
g_signal_connect (stream, "notify::socket", (GCallback) on_socket_notify, stream);
pv_stream_connect_capture (stream, NULL, 0);
g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
pv_stream_connect_capture (stream, NULL, 0, g_variant_builder_end (&builder));
break;
}
default: