Pass unhandled queries upstream instead of just dropping them (#326447). Also, fix supported query types list for som...

Original commit message from CVS:
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_query_types),
(gst_ogg_pad_src_query):
* ext/ogg/gstogmparse.c: (gst_ogm_parse_sink_query):
* ext/theora/theoradec.c: (theora_dec_src_query),
(theora_dec_sink_query):
* ext/vorbis/vorbisdec.c: (vorbis_dec_src_query),
(vorbis_dec_sink_query):
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_src_query),
(gst_vorbisenc_sink_query):
* gst/adder/gstadder.c: (gst_adder_query):
Pass unhandled queries upstream instead of just
dropping them (#326447). Also, fix supported
query types list for some elements.
This commit is contained in:
Tim-Philipp Müller 2006-02-01 11:56:11 +00:00
parent aefc04ca61
commit 41e4f03f9b
7 changed files with 27 additions and 13 deletions

View file

@ -1,3 +1,19 @@
2006-02-01 Tim-Philipp Müller <tim at centricular dot net>
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_query_types),
(gst_ogg_pad_src_query):
* ext/ogg/gstogmparse.c: (gst_ogm_parse_sink_query):
* ext/theora/theoradec.c: (theora_dec_src_query),
(theora_dec_sink_query):
* ext/vorbis/vorbisdec.c: (vorbis_dec_src_query),
(vorbis_dec_sink_query):
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_src_query),
(gst_vorbisenc_sink_query):
* gst/adder/gstadder.c: (gst_adder_query):
Pass unhandled queries upstream instead of just
dropping them (#326447). Also, fix supported
query types list for some elements.
2006-02-01 Tim-Philipp Müller <tim at centricular dot net>
* gst/typefind/gsttypefindfunctions.c: (au_type_find),

View file

@ -339,7 +339,7 @@ static const GstQueryType *
gst_ogg_pad_query_types (GstPad * pad)
{
static const GstQueryType query_types[] = {
GST_QUERY_POSITION,
GST_QUERY_DURATION,
0
};
@ -378,12 +378,8 @@ gst_ogg_pad_src_query (GstPad * pad, GstQuery * query)
gst_query_set_duration (query, GST_FORMAT_TIME, ogg->total_time);
break;
}
case GST_QUERY_CONVERT:
/* hmm .. */
res = FALSE;
break;
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
done:

View file

@ -524,7 +524,7 @@ gst_ogm_parse_sink_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
return res;

View file

@ -496,7 +496,7 @@ theora_dec_src_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
return res;
@ -527,7 +527,7 @@ theora_dec_sink_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}

View file

@ -331,7 +331,7 @@ vorbis_dec_src_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
return res;
@ -365,7 +365,7 @@ vorbis_dec_sink_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
error:

View file

@ -475,7 +475,7 @@ gst_vorbisenc_src_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
@ -508,7 +508,7 @@ gst_vorbisenc_sink_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}

View file

@ -234,8 +234,10 @@ gst_adder_query (GstPad * pad, GstQuery * query)
/* FIXME: what to do about the length? query all pads upstream and
* pick the longest length? or the shortest length? or what? */
case GST_QUERY_DURATION:
res = FALSE;
break;
default:
res = gst_pad_query_default (pad, query);
break;
}