mssdemux: use standard glib methods