diff options
author | Josep Torra <n770galaxy@gmail.com> | 2013-03-07 11:24:54 +0100 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-03-07 11:24:54 +0100 |
commit | cc495aeb16eba9e9137184dd32c9f8af7d820522 (patch) | |
tree | 5c7e1a20c00bf04aac9b04a6404170e791b41779 | |
parent | e123b2089f69a413241f30a2428ea6edd8f231e7 (diff) | |
download | gst-omx-cc495aeb16eba9e9137184dd32c9f8af7d820522.tar.gz |
omxvideodec: fixes reconfiguration
Avoid having fixed fields from previous caps on reconfiguration.
-rw-r--r-- | omx/gstomxvideodec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index d2bfc7a..3119408 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -993,14 +993,17 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self) OMX_ERRORTYPE err; GstCaps *comp_supported_caps; GList *negotiation_map = NULL, *l; - GstCaps *intersection; + GstCaps *templ_caps, *intersection; GstVideoFormat format; GstStructure *s; const gchar *format_str; GST_DEBUG_OBJECT (self, "Trying to negotiate a video format with downstream"); - intersection = gst_pad_get_allowed_caps (GST_VIDEO_DECODER_SRC_PAD (self)); + templ_caps = gst_pad_get_pad_template_caps (GST_VIDEO_DECODER_SRC_PAD (self)); + intersection = + gst_pad_peer_query_caps (GST_VIDEO_DECODER_SRC_PAD (self), templ_caps); + gst_caps_unref (templ_caps); GST_DEBUG_OBJECT (self, "Allowed downstream caps: %" GST_PTR_FORMAT, intersection); |