shmsink: Get potentially modified after opening shmpipe
authorOlivier Crête <olivier.crete@collabora.co.uk>
Tue, 26 Jan 2010 10:34:34 +0000 (12:34 +0200)
committerOlivier Crête <olivier.crete@collabora.co.uk>
Thu, 3 Jun 2010 19:27:42 +0000 (15:27 -0400)
gst/shm/gstshmsink.c

index b4f13b54e70c442667b6f30c97d306c065a2f431..098c899e3274d2416ced88642baea1f142938232 100644 (file)
@@ -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);