mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +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;
|
||||
|
||||
if (pad == queue->srcpad)
|
||||
otherpad = queue->sinkpad;
|
||||
otherpad = GST_PAD_PEER (queue->sinkpad);
|
||||
else
|
||||
otherpad = queue->srcpad;
|
||||
otherpad = GST_PAD_PEER (queue->srcpad);
|
||||
|
||||
return gst_pad_get_allowed_caps (otherpad);
|
||||
if (otherpad)
|
||||
return gst_pad_get_caps (otherpad);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -194,11 +194,14 @@ gst_queue_getcaps (GstPad *pad, GstCaps *caps)
|
|||
GstPad *otherpad;
|
||||
|
||||
if (pad == queue->srcpad)
|
||||
otherpad = queue->sinkpad;
|
||||
otherpad = GST_PAD_PEER (queue->sinkpad);
|
||||
else
|
||||
otherpad = queue->srcpad;
|
||||
otherpad = GST_PAD_PEER (queue->srcpad);
|
||||
|
||||
return gst_pad_get_allowed_caps (otherpad);
|
||||
if (otherpad)
|
||||
return gst_pad_get_caps (otherpad);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue