shmsink: Get potentially modified after opening shmpipe

This commit is contained in:
Olivier Crête 2010-01-26 12:34:34 +02:00
parent 7e8eae9f2a
commit 5c7a160de5

View file

@ -288,6 +288,9 @@ gst_shm_sink_start (GstBaseSink * bsink)
return FALSE; return FALSE;
} }
g_free (self->socket_path);
self->socket_path = g_strdup (sp_writer_get_path (self->pipe));
self->poll = gst_poll_new (TRUE); self->poll = gst_poll_new (TRUE);
gst_poll_fd_init (&self->serverpollfd); gst_poll_fd_init (&self->serverpollfd);
self->serverpollfd.fd = sp_get_fd (self->pipe); self->serverpollfd.fd = sp_get_fd (self->pipe);