Commit cd971591 authored by W. Michael Petullo's avatar W. Michael Petullo
Browse files

Fix segfault in test-dmap-server; there still seems to be another


Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent f43648f8
......@@ -585,6 +585,7 @@ add_entry_to_mlcl (gpointer id,
if (_dmap_share_client_requested (mb->bits, SONG_FORMAT)) {
gchar *format = NULL;
gchar *transcode_mimetype = NULL;
/* FIXME: This should be share, not record: */
g_object_get (record, "transcode-mimetype", &transcode_mimetype, NULL);
if (transcode_mimetype)
format = g_strdup (mime_to_format (transcode_mimetype));
......
......@@ -39,7 +39,7 @@ test_dmap_container_db_foreach (DMAPContainerDb *db,
gpointer data)
{
/* In reality, pull each record from the db and execute func on it. */
func (record, data, NULL);
func (GUINT_TO_POINTER (1), record, data);
}
static gint64
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment