mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-07 19:22:15 +00:00
pulsesink: Always call pa_stream_new_with_proplist()
pa_stream_new_with_proplist() can take a NULL proplist, so we don't need to concern ourselves with whether it's NULL or not.
This commit is contained in:
parent
234609844e
commit
dc48eaac13
1 changed files with 2 additions and 6 deletions
|
@ -783,12 +783,8 @@ gst_pulseringbuffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec)
|
||||||
|
|
||||||
/* create a stream */
|
/* create a stream */
|
||||||
GST_LOG_OBJECT (psink, "creating stream with name %s", name);
|
GST_LOG_OBJECT (psink, "creating stream with name %s", name);
|
||||||
if (psink->proplist) {
|
if (!(pbuf->stream = pa_stream_new_with_proplist (pbuf->context, name,
|
||||||
if (!(pbuf->stream = pa_stream_new_with_proplist (pbuf->context,
|
&pbuf->sample_spec, &channel_map, psink->proplist)))
|
||||||
name, &pbuf->sample_spec, &channel_map, psink->proplist)))
|
|
||||||
goto stream_failed;
|
|
||||||
} else if (!(pbuf->stream = pa_stream_new (pbuf->context,
|
|
||||||
name, &pbuf->sample_spec, &channel_map)))
|
|
||||||
goto stream_failed;
|
goto stream_failed;
|
||||||
|
|
||||||
/* install essential callbacks */
|
/* install essential callbacks */
|
||||||
|
|
Loading…
Reference in a new issue