projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23f2464
)
Don't attempt to negotiate format if our srcpad isn't linked. Simply succeed and...
author
Anonymous Ignore This
<anoncvs@ignore.this>
Thu, 24 Jul 2003 03:02:06 +0000
(
03:02
+0000)
committer
Anonymous Ignore This
<anoncvs@ignore.this>
Thu, 24 Jul 2003 03:02:06 +0000
(
03:02
+0000)
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.
ext/mpeg2dec/gstmpeg2dec.c
patch
|
blob
|
history
diff --git
a/ext/mpeg2dec/gstmpeg2dec.c
b/ext/mpeg2dec/gstmpeg2dec.c
index 522578b7af6e3c37d84dacea9a6fbff16ecc5bf7..522c6ace0882cf2e43c5368efc16289ace814f41 100644
(file)
--- a/
ext/mpeg2dec/gstmpeg2dec.c
+++ b/
ext/mpeg2dec/gstmpeg2dec.c
@@
-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 */