Make source and source-output server side only

Move source and source-output to the server side again.
Make the daemon track objects per sender so that we can remove them
when the sender disappears.
This commit is contained in:
Wim Taymans 2015-05-05 18:20:32 +02:00
parent 1b89f2f8ad
commit d9444ab360
17 changed files with 139 additions and 205 deletions

View file

@ -32,7 +32,7 @@ on_state_notify (GObject *gobject,
gpointer user_data)
{
PvContextState state;
PvContext *c = user_data;
//PvContext *c = user_data;
g_object_get (gobject, "state", &state, NULL);
g_print ("got context state %d\n", state);
@ -43,10 +43,10 @@ on_state_notify (GObject *gobject,
break;
case PV_CONTEXT_STATE_READY:
{
PvSource *source;
//PvSource *source;
source = pv_v4l2_source_new ();
pv_context_register_source (c, source);
//source = pv_v4l2_source_new (NULL);
//pv_context_register_source (c, source);
break;
}
default: