stream: always listen from messages from pinos

Always listen for messages from Pinos, even when we are sending a stream
because we want to get the release-fd messages.
This commit is contained in:
Wim Taymans 2015-12-03 15:46:05 +01:00
parent 6864ea9830
commit 1e5c892564

View file

@ -838,9 +838,6 @@ on_socket_condition (GSocket *socket,
g_assert (len == sizeof (PinosStackHeader));
if (num_messages == 0)
break;
/* now we know the total length */
need += hdr->length;
@ -909,11 +906,9 @@ handle_socket (PinosStream *stream, gint fd)
case PINOS_STREAM_MODE_BUFFER:
{
if (!priv->provide) {
priv->socket_source = g_socket_create_source (priv->socket, G_IO_IN, NULL);
g_source_set_callback (priv->socket_source, (GSourceFunc) on_socket_condition, stream, NULL);
g_source_attach (priv->socket_source, priv->context->priv->context);
}
priv->socket_source = g_socket_create_source (priv->socket, G_IO_IN, NULL);
g_source_set_callback (priv->socket_source, (GSourceFunc) on_socket_condition, stream, NULL);
g_source_attach (priv->socket_source, priv->context->priv->context);
break;
}