mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
opusdec: fix for caps api change
This commit is contained in:
parent
c3672b88f1
commit
0d84de3fa9
1 changed files with 2 additions and 2 deletions
|
@ -214,9 +214,9 @@ gst_opus_dec_negotiate (GstOpusDec * dec, const GstAudioChannelPosition * pos)
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
GstAudioInfo info;
|
GstAudioInfo info;
|
||||||
|
|
||||||
caps = gst_caps_make_writable (caps);
|
caps = gst_caps_truncate (caps);
|
||||||
gst_caps_truncate (caps);
|
|
||||||
|
|
||||||
|
caps = gst_caps_make_writable (caps);
|
||||||
s = gst_caps_get_structure (caps, 0);
|
s = gst_caps_get_structure (caps, 0);
|
||||||
gst_structure_fixate_field_nearest_int (s, "rate", 48000);
|
gst_structure_fixate_field_nearest_int (s, "rate", 48000);
|
||||||
gst_structure_get_int (s, "rate", &dec->sample_rate);
|
gst_structure_get_int (s, "rate", &dec->sample_rate);
|
||||||
|
|
Loading…
Reference in a new issue