mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
Improve default source state
Default source state should be SUSPENDED
This commit is contained in:
parent
4199d5652e
commit
53bc0f7848
4 changed files with 14 additions and 12 deletions
|
|
@ -124,7 +124,7 @@ client_set_state (PinosSource *source,
|
|||
gst_element_set_state (priv->pipeline, GST_STATE_NULL);
|
||||
break;
|
||||
|
||||
case PINOS_SOURCE_STATE_INIT:
|
||||
case PINOS_SOURCE_STATE_INITIALIZING:
|
||||
gst_element_set_state (priv->pipeline, GST_STATE_READY);
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -315,7 +315,7 @@ pinos_source_class_init (PinosSourceClass * klass)
|
|||
"State",
|
||||
"The state of the source",
|
||||
PINOS_TYPE_SOURCE_STATE,
|
||||
PINOS_SOURCE_STATE_INIT,
|
||||
PINOS_SOURCE_STATE_SUSPENDED,
|
||||
G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS));
|
||||
|
||||
|
|
@ -338,7 +338,9 @@ pinos_source_class_init (PinosSourceClass * klass)
|
|||
static void
|
||||
pinos_source_init (PinosSource * source)
|
||||
{
|
||||
source->priv = PINOS_SOURCE_GET_PRIVATE (source);
|
||||
PinosSourcePrivate *priv = source->priv = PINOS_SOURCE_GET_PRIVATE (source);
|
||||
|
||||
priv->state = PINOS_SOURCE_STATE_SUSPENDED;
|
||||
}
|
||||
|
||||
GBytes *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue