pluginloader: Always mark reception as complete after EXIT

Avoids waiting forever on gst_poll_wait when using the select
backend.

Fixes #637057
This commit is contained in:
Edward Hervey 2011-01-03 20:32:23 +01:00
parent 98900a43c1
commit 36d44b3e52

View file

@ -725,11 +725,10 @@ handle_rx_packet (GstPluginLoader * l,
case PACKET_EXIT:
gst_poll_fd_ctl_read (l->fdset, &l->fd_r, FALSE);
if (l->is_child) {
/* Respond, then we keep looping until the parent closes the fd */
/* Respond */
put_packet (l, PACKET_EXIT, 0, NULL, 0);
} else {
l->rx_done = TRUE; /* All done reading from child */
}
l->rx_done = TRUE;
return TRUE;
case PACKET_LOAD_PLUGIN:{
if (!l->is_child)