mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
qtdemux: avoid setting fields to non-writable caps
This commit is contained in:
parent
544d926732
commit
895525b5cb
1 changed files with 1 additions and 0 deletions
|
@ -5540,6 +5540,7 @@ gst_qtdemux_configure_stream (GstQTDemux * qtdemux, QtDemuxStream * stream)
|
|||
}
|
||||
} else if (stream->subtype == FOURCC_soun) {
|
||||
if (stream->caps) {
|
||||
stream->caps = gst_caps_make_writable (stream->caps);
|
||||
gst_caps_set_simple (stream->caps,
|
||||
"rate", G_TYPE_INT, (int) stream->rate,
|
||||
"channels", G_TYPE_INT, stream->n_channels, NULL);
|
||||
|
|
Loading…
Reference in a new issue