if a stream comes with now sensible properties attached, use common
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Oct 2008 22:08:51 +0000 (00:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Oct 2008 22:08:51 +0000 (00:08 +0200)
fallback db entry.

src/modules/module-stream-restore.c

index fe79291..e1381a5 100644 (file)
@@ -134,7 +134,7 @@ static char *get_name(pa_proplist *p, const char *prefix) {
     else if ((r = pa_proplist_gets(p, PA_PROP_MEDIA_NAME)))
         return pa_sprintf_malloc("%s-by-media-name:%s", prefix, r);
 
-    return NULL;
+    return pa_sprintf_malloc("%s-fallback:%s", prefix);
 }
 
 static struct entry* read_entry(struct userdata *u, char *name) {