mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
use GST_PAD_CAPS if they exist
Original commit message from CVS: use GST_PAD_CAPS if they exist
This commit is contained in:
parent
72333e34f6
commit
acdea61ebc
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-04-29 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_getcaps):
|
||||
use GST_PAD_CAPS if they exist so we don't renegotiate needlessly
|
||||
|
||||
2004-04-22 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps),
|
||||
|
|
|
@ -154,7 +154,12 @@ gst_ffmpegcsp_getcaps (GstPad * pad)
|
|||
|
||||
otherpad = (pad == space->srcpad) ? space->sinkpad : space->srcpad;
|
||||
|
||||
othercaps = gst_pad_get_allowed_caps (otherpad);
|
||||
/* use already negotiated caps if they exist */
|
||||
if (GST_PAD_CAPS (otherpad))
|
||||
othercaps = gst_caps_copy (GST_PAD_CAPS (otherpad));
|
||||
if (!othercaps)
|
||||
othercaps = gst_pad_get_allowed_caps (otherpad);
|
||||
|
||||
|
||||
othercaps = gst_ffmpegcsp_caps_remove_format_info (othercaps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue