]> code.delx.au - pulseaudio/commitdiff
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 fe79291e6de31780d282061875300eac4b593aed..e1381a5e2512f51ad6a2ff2f89e3851a764e21a9 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) {