- 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:
Wim Taymans 2003-01-23 19:49:18 +00:00
parent 84c67b8f69
commit d0f97d1978
2 changed files with 12 additions and 6 deletions

View file

@ -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

View file

@ -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