mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
vban: truncate sess.name when too large
This commit is contained in:
parent
9695fafc06
commit
23b0ff136a
1 changed files with 2 additions and 2 deletions
|
|
@ -298,7 +298,7 @@ struct vban_stream *vban_stream_new(struct pw_core *core,
|
||||||
impl->header.format_bit = impl->format_info->format_bit;
|
impl->header.format_bit = impl->format_info->format_bit;
|
||||||
if ((str = pw_properties_get(props, "sess.name")) == NULL)
|
if ((str = pw_properties_get(props, "sess.name")) == NULL)
|
||||||
str = "Stream1";
|
str = "Stream1";
|
||||||
strcpy(impl->header.stream_name, str);
|
snprintf(impl->header.stream_name, sizeof(impl->header.stream_name), "%s", str);
|
||||||
break;
|
break;
|
||||||
case SPA_MEDIA_SUBTYPE_control:
|
case SPA_MEDIA_SUBTYPE_control:
|
||||||
impl->stream_info = impl->info;
|
impl->stream_info = impl->info;
|
||||||
|
|
@ -319,7 +319,7 @@ struct vban_stream *vban_stream_new(struct pw_core *core,
|
||||||
impl->header.format_bit = impl->format_info->format_bit;
|
impl->header.format_bit = impl->format_info->format_bit;
|
||||||
if ((str = pw_properties_get(props, "sess.name")) == NULL)
|
if ((str = pw_properties_get(props, "sess.name")) == NULL)
|
||||||
str = "Midi1";
|
str = "Midi1";
|
||||||
strcpy(impl->header.stream_name, str);
|
snprintf(impl->header.stream_name, sizeof(impl->header.stream_name), "%s", str);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
spa_assert_not_reached();
|
spa_assert_not_reached();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue