mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
- Proxy the get_caps function slightly differently. This is potentially dangerous as it works quite differently. My t...
Original commit message from CVS: - Proxy the get_caps function slightly differently. This is potentially dangerous as it works quite differently. My tests seem to work though and it fixes the play-multi-file-segfault in the player.
This commit is contained in:
parent
84c67b8f69
commit
d0f97d1978
2 changed files with 12 additions and 6 deletions
|
@ -194,11 +194,14 @@ gst_queue_getcaps (GstPad *pad, GstCaps *caps)
|
||||||
GstPad *otherpad;
|
GstPad *otherpad;
|
||||||
|
|
||||||
if (pad == queue->srcpad)
|
if (pad == queue->srcpad)
|
||||||
otherpad = queue->sinkpad;
|
otherpad = GST_PAD_PEER (queue->sinkpad);
|
||||||
else
|
else
|
||||||
otherpad = queue->srcpad;
|
otherpad = GST_PAD_PEER (queue->srcpad);
|
||||||
|
|
||||||
|
if (otherpad)
|
||||||
|
return gst_pad_get_caps (otherpad);
|
||||||
|
|
||||||
return gst_pad_get_allowed_caps (otherpad);
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -194,11 +194,14 @@ gst_queue_getcaps (GstPad *pad, GstCaps *caps)
|
||||||
GstPad *otherpad;
|
GstPad *otherpad;
|
||||||
|
|
||||||
if (pad == queue->srcpad)
|
if (pad == queue->srcpad)
|
||||||
otherpad = queue->sinkpad;
|
otherpad = GST_PAD_PEER (queue->sinkpad);
|
||||||
else
|
else
|
||||||
otherpad = queue->srcpad;
|
otherpad = GST_PAD_PEER (queue->srcpad);
|
||||||
|
|
||||||
|
if (otherpad)
|
||||||
|
return gst_pad_get_caps (otherpad);
|
||||||
|
|
||||||
return gst_pad_get_allowed_caps (otherpad);
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue