diff --git a/gst/shm/gstshmsink.c b/gst/shm/gstshmsink.c index b4f13b54e7..098c899e32 100644 --- a/gst/shm/gstshmsink.c +++ b/gst/shm/gstshmsink.c @@ -288,6 +288,9 @@ gst_shm_sink_start (GstBaseSink * bsink) return FALSE; } + g_free (self->socket_path); + self->socket_path = g_strdup (sp_writer_get_path (self->pipe)); + self->poll = gst_poll_new (TRUE); gst_poll_fd_init (&self->serverpollfd); self->serverpollfd.fd = sp_get_fd (self->pipe);