mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
drop a redundant pa_init_proplist(), properly set MEDIA_NAME property on stream, not on context
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2285 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5971345e99
commit
64e048cb1b
1 changed files with 1 additions and 3 deletions
|
|
@ -95,7 +95,7 @@ pa_stream *pa_stream_new_with_proplist(pa_context *c, const char *name, const pa
|
||||||
s->proplist = p ? pa_proplist_copy(p) : pa_proplist_new();
|
s->proplist = p ? pa_proplist_copy(p) : pa_proplist_new();
|
||||||
|
|
||||||
if (name)
|
if (name)
|
||||||
pa_proplist_sets(c->proplist, PA_PROP_MEDIA_NAME, name);
|
pa_proplist_sets(s->proplist, PA_PROP_MEDIA_NAME, name);
|
||||||
|
|
||||||
s->channel = 0;
|
s->channel = 0;
|
||||||
s->channel_valid = 0;
|
s->channel_valid = 0;
|
||||||
|
|
@ -843,8 +843,6 @@ static int create_stream(
|
||||||
else
|
else
|
||||||
pa_tagstruct_put_boolean(t, flags & PA_STREAM_PEAK_DETECT);
|
pa_tagstruct_put_boolean(t, flags & PA_STREAM_PEAK_DETECT);
|
||||||
|
|
||||||
pa_init_proplist(s->proplist);
|
|
||||||
|
|
||||||
pa_tagstruct_put(
|
pa_tagstruct_put(
|
||||||
t,
|
t,
|
||||||
PA_TAG_BOOLEAN, flags & PA_STREAM_ADJUST_LATENCY,
|
PA_TAG_BOOLEAN, flags & PA_STREAM_ADJUST_LATENCY,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue