jitterbuffer: fix caps after pt change
This commit is contained in:
parent
c94c06530e
commit
ed8c0b7f63
@ -1287,14 +1287,13 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
|
|||||||
priv->last_pt = pt;
|
priv->last_pt = pt;
|
||||||
/* reset clock-rate so that we get a new one */
|
/* reset clock-rate so that we get a new one */
|
||||||
priv->clock_rate = -1;
|
priv->clock_rate = -1;
|
||||||
#if 0
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
/* Try to get the clock-rate from the caps first if we can. If there are no
|
/* Try to get the clock-rate from the caps first if we can. If there are no
|
||||||
* caps we must fire the signal to get the clock-rate. */
|
* caps we must fire the signal to get the clock-rate. */
|
||||||
if ((caps = GST_BUFFER_CAPS (buffer))) {
|
if ((caps = gst_pad_get_current_caps (pad))) {
|
||||||
gst_jitter_buffer_sink_parse_caps (jitterbuffer, caps);
|
gst_jitter_buffer_sink_parse_caps (jitterbuffer, caps);
|
||||||
|
gst_caps_unref (caps);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_UNLIKELY (priv->clock_rate == -1)) {
|
if (G_UNLIKELY (priv->clock_rate == -1)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user