[PATCH 08/21] sink, source: Assert that a description is always set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/pulsecore/sink.c   | 1 +
 src/pulsecore/source.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 379f93c..4599f8a 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -585,6 +585,7 @@ void pa_sink_put(pa_sink* s) {
     /* The following fields must be initialized properly when calling _put() */
     pa_assert(s->asyncmsgq);
     pa_assert(s->thread_info.min_latency <= s->thread_info.max_latency);
+    pa_assert(pa_proplist_contains(s->proplist, PA_PROP_DEVICE_DESCRIPTION));
 
     /* Generally, flags should be initialized via pa_sink_new(). As a
      * special exception we allow some volume related flags to be set
diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c
index a0f355e..b3b4d2a 100644
--- a/src/pulsecore/source.c
+++ b/src/pulsecore/source.c
@@ -535,6 +535,7 @@ void pa_source_put(pa_source *s) {
     /* The following fields must be initialized properly when calling _put() */
     pa_assert(s->asyncmsgq);
     pa_assert(s->thread_info.min_latency <= s->thread_info.max_latency);
+    pa_assert(pa_proplist_contains(s->proplist, PA_PROP_DEVICE_DESCRIPTION));
 
     /* Generally, flags should be initialized via pa_source_new(). As a
      * special exception we allow some volume related flags to be set
-- 
1.8.1.2



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux