mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
Don't attempt to negotiate format if our srcpad isn't linked. Simply succeed and continue. This is needed for pure ...
Original commit message from CVS: Don't attempt to negotiate format if our srcpad isn't linked. Simply succeed and continue. This is needed for pure indexer applications.
This commit is contained in:
parent
23f2464658
commit
f1dc779db1
1 changed files with 5 additions and 0 deletions
|
@ -315,6 +315,11 @@ gst_mpeg2dec_negotiate_format (GstMpeg2dec *mpeg2dec)
|
|||
GstCaps *allowed;
|
||||
GstCaps *intersect, *trylist, *head, *to_intersect;
|
||||
|
||||
if (!GST_PAD_IS_LINKED (mpeg2dec->srcpad)) {
|
||||
mpeg2dec->format = MPEG2DEC_FORMAT_I420;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* we what we are allowed to do */
|
||||
allowed = gst_pad_get_allowed_caps (mpeg2dec->srcpad);
|
||||
/* we could not get allowed caps */
|
||||
|
|
Loading…
Reference in a new issue