qtdemux: avoid setting fields to non-writable caps

This commit is contained in:
Thiago Santos 2013-04-10 18:02:28 -03:00
parent 544d926732
commit 895525b5cb

View file

@ -5540,6 +5540,7 @@ gst_qtdemux_configure_stream (GstQTDemux * qtdemux, QtDemuxStream * stream)
} }
} else if (stream->subtype == FOURCC_soun) { } else if (stream->subtype == FOURCC_soun) {
if (stream->caps) { if (stream->caps) {
stream->caps = gst_caps_make_writable (stream->caps);
gst_caps_set_simple (stream->caps, gst_caps_set_simple (stream->caps,
"rate", G_TYPE_INT, (int) stream->rate, "rate", G_TYPE_INT, (int) stream->rate,
"channels", G_TYPE_INT, stream->n_channels, NULL); "channels", G_TYPE_INT, stream->n_channels, NULL);