]> code.delx.au - pulseaudio/commitdiff
sink, source: Add a TODO comment about removing get_formats()
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sun, 17 Nov 2013 19:22:20 +0000 (21:22 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 29 Nov 2013 05:12:16 +0000 (07:12 +0200)
src/pulsecore/sink.h
src/pulsecore/source.h

index e12fabae612430366a3533751675f117f0ff8f9a..ded80c0a3e70571418bb069cb485973a263c2e13 100644 (file)
@@ -461,7 +461,13 @@ pa_queue *pa_sink_move_all_start(pa_sink *s, pa_queue *q);
 void pa_sink_move_all_finish(pa_sink *s, pa_queue *q, bool save);
 void pa_sink_move_all_fail(pa_queue *q);
 
+/* Returns a copy of the sink formats. TODO: Get rid of this function (or at
+ * least get rid of the copying). There's no good reason to copy the formats
+ * every time someone wants to know what formats the sink supports. The formats
+ * idxset could be stored directly in the pa_sink struct.
+ * https://bugs.freedesktop.org/show_bug.cgi?id=71924 */
 pa_idxset* pa_sink_get_formats(pa_sink *s);
+
 bool pa_sink_set_formats(pa_sink *s, pa_idxset *formats);
 bool pa_sink_check_format(pa_sink *s, pa_format_info *f);
 pa_idxset* pa_sink_check_formats(pa_sink *s, pa_idxset *in_formats);
index b20d4c0126028143dfcc4c73f8a7b561d168df30..e7e9da997ce75202a11167c0233da99aee6c9965 100644 (file)
@@ -394,7 +394,13 @@ pa_queue *pa_source_move_all_start(pa_source *s, pa_queue *q);
 void pa_source_move_all_finish(pa_source *s, pa_queue *q, bool save);
 void pa_source_move_all_fail(pa_queue *q);
 
+/* Returns a copy of the source formats. TODO: Get rid of this function (or at
+ * least get rid of the copying). There's no good reason to copy the formats
+ * every time someone wants to know what formats the source supports. The
+ * formats idxset could be stored directly in the pa_source struct.
+ * https://bugs.freedesktop.org/show_bug.cgi?id=71924 */
 pa_idxset* pa_source_get_formats(pa_source *s);
+
 bool pa_source_check_format(pa_source *s, pa_format_info *f);
 pa_idxset* pa_source_check_formats(pa_source *s, pa_idxset *in_formats);