mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
Add provide mode to pinossink
Add a mode to provide a stream to pinossink Small improvements, leak fixes.
This commit is contained in:
parent
ba4ef9b5d9
commit
20c50772fa
20 changed files with 309 additions and 212 deletions
|
|
@ -182,16 +182,16 @@ pinos_channel_set_property (GObject *_object,
|
|||
if (priv->properties)
|
||||
pinos_properties_free (priv->properties);
|
||||
priv->properties = g_value_dup_boxed (value);
|
||||
g_object_set (priv->iface, "properties",
|
||||
pinos_properties_to_variant (priv->properties), NULL);
|
||||
g_object_set (priv->iface, "properties", priv->properties ?
|
||||
pinos_properties_to_variant (priv->properties) : NULL, NULL);
|
||||
break;
|
||||
|
||||
case PROP_FORMAT:
|
||||
if (priv->format)
|
||||
g_bytes_unref (priv->format);
|
||||
priv->format = g_value_dup_boxed (value);
|
||||
g_object_set (priv->iface, "format",
|
||||
g_bytes_get_data (priv->format, NULL), NULL);
|
||||
g_object_set (priv->iface, "format", priv->format ?
|
||||
g_bytes_get_data (priv->format, NULL) : NULL, NULL);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
@ -346,6 +346,8 @@ channel_register_object (PinosChannel *channel)
|
|||
|
||||
g_free (priv->object_path);
|
||||
priv->object_path = pinos_daemon_export_uniquely (priv->daemon, G_DBUS_OBJECT_SKELETON (skel));
|
||||
g_object_unref (skel);
|
||||
|
||||
g_debug ("channel %p: register object %s", channel, priv->object_path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue