_accept_caps() -> _query_accept_caps()

This commit is contained in:
Wim Taymans 2011-11-15 17:42:32 +01:00
parent 7f70d16daf
commit 3aa7fa6aea

View file

@ -909,7 +909,7 @@ gst_dvd_sub_dec_sink_setcaps (GstPad * pad, GstCaps * caps)
"height", G_TYPE_INT, dec->in_height,
"framerate", GST_TYPE_FRACTION, 0, 1, NULL);
if (gst_pad_peer_accept_caps (dec->srcpad, out_caps)) {
if (gst_pad_peer_query_accept_caps (dec->srcpad, out_caps)) {
GST_DEBUG_OBJECT (dec, "peer accepted ARGB");
/* If ARGB format then set the flag */
dec->use_ARGB = TRUE;