mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
gst: enable new properties on gst elements
Enable properties to handle release-fd messages
This commit is contained in:
parent
8a509ec2a4
commit
0b7393affe
2 changed files with 7 additions and 2 deletions
|
|
@ -137,6 +137,8 @@ setup_pipeline (PinosGstSource *source, GError **error)
|
||||||
"sync-method", 0, /* latest */
|
"sync-method", 0, /* latest */
|
||||||
"sync", TRUE,
|
"sync", TRUE,
|
||||||
"enable-last-sample", FALSE,
|
"enable-last-sample", FALSE,
|
||||||
|
"send-dispatched", TRUE,
|
||||||
|
"send-messages", TRUE,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
gst_bin_add (GST_BIN (priv->pipeline), priv->sink);
|
gst_bin_add (GST_BIN (priv->pipeline), priv->sink);
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,8 @@ setup_pipeline (PinosClientSource *source)
|
||||||
|
|
||||||
priv->pipeline = gst_parse_launch ("socketsrc "
|
priv->pipeline = gst_parse_launch ("socketsrc "
|
||||||
"name=src "
|
"name=src "
|
||||||
"caps=application/x-pinos ! "
|
"caps=application/x-pinos "
|
||||||
|
"send-messages=true ! "
|
||||||
"pinospay ! "
|
"pinospay ! "
|
||||||
"multisocketsink "
|
"multisocketsink "
|
||||||
"buffers-max=2 "
|
"buffers-max=2 "
|
||||||
|
|
@ -140,7 +141,9 @@ setup_pipeline (PinosClientSource *source)
|
||||||
"sync-method=latest "
|
"sync-method=latest "
|
||||||
"name=sink "
|
"name=sink "
|
||||||
"sync=true "
|
"sync=true "
|
||||||
"enable-last-sample=false",
|
"enable-last-sample=false "
|
||||||
|
"send-messages=true "
|
||||||
|
"send-dispatched=true",
|
||||||
NULL);
|
NULL);
|
||||||
priv->sink = gst_bin_get_by_name (GST_BIN (priv->pipeline), "sink");
|
priv->sink = gst_bin_get_by_name (GST_BIN (priv->pipeline), "sink");
|
||||||
priv->src = gst_bin_get_by_name (GST_BIN (priv->pipeline), "src");
|
priv->src = gst_bin_get_by_name (GST_BIN (priv->pipeline), "src");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue