mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
alphabetization fixen a jack caps fix
Original commit message from CVS: * alphabetization fixen * a jack caps fix
This commit is contained in:
parent
b3ce1be554
commit
2d8f33b3e4
1 changed files with 3 additions and 1 deletions
|
@ -436,13 +436,15 @@ static GstPadConnectReturn
|
||||||
gst_jack_connect (GstPad *pad, GstCaps *caps)
|
gst_jack_connect (GstPad *pad, GstCaps *caps)
|
||||||
{
|
{
|
||||||
GstJack *this;
|
GstJack *this;
|
||||||
|
gint rate;
|
||||||
|
|
||||||
this = GST_JACK (gst_pad_get_parent (pad));
|
this = GST_JACK (gst_pad_get_parent (pad));
|
||||||
g_return_val_if_fail (this != NULL, GST_PAD_CONNECT_REFUSED);
|
g_return_val_if_fail (this != NULL, GST_PAD_CONNECT_REFUSED);
|
||||||
g_return_val_if_fail (GST_IS_JACK (this), GST_PAD_CONNECT_REFUSED);
|
g_return_val_if_fail (GST_IS_JACK (this), GST_PAD_CONNECT_REFUSED);
|
||||||
|
|
||||||
if (GST_CAPS_IS_FIXED (caps)) {
|
if (GST_CAPS_IS_FIXED (caps)) {
|
||||||
if (this->client && gst_caps_get_int (caps, "rate") != this->client->rate)
|
gst_caps_get_int (caps, "rate", &rate);
|
||||||
|
if (this->client && rate != this->client->rate)
|
||||||
return GST_PAD_CONNECT_REFUSED;
|
return GST_PAD_CONNECT_REFUSED;
|
||||||
|
|
||||||
return GST_PAD_CONNECT_OK;
|
return GST_PAD_CONNECT_OK;
|
||||||
|
|
Loading…
Reference in a new issue