mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 13:26:36 +00:00
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:
parent
aefc04ca61
commit
41e4f03f9b
7 changed files with 27 additions and 13 deletions
16
ChangeLog
16
ChangeLog
|
@ -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>
|
2006-02-01 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/typefind/gsttypefindfunctions.c: (au_type_find),
|
* gst/typefind/gsttypefindfunctions.c: (au_type_find),
|
||||||
|
|
|
@ -339,7 +339,7 @@ static const GstQueryType *
|
||||||
gst_ogg_pad_query_types (GstPad * pad)
|
gst_ogg_pad_query_types (GstPad * pad)
|
||||||
{
|
{
|
||||||
static const GstQueryType query_types[] = {
|
static const GstQueryType query_types[] = {
|
||||||
GST_QUERY_POSITION,
|
GST_QUERY_DURATION,
|
||||||
0
|
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);
|
gst_query_set_duration (query, GST_FORMAT_TIME, ogg->total_time);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_QUERY_CONVERT:
|
|
||||||
/* hmm .. */
|
|
||||||
res = FALSE;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
res = FALSE;
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
|
|
|
@ -524,7 +524,7 @@ gst_ogm_parse_sink_query (GstPad * pad, GstQuery * query)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
res = FALSE;
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|
|
@ -496,7 +496,7 @@ theora_dec_src_query (GstPad * pad, GstQuery * query)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
res = FALSE;
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
@ -527,7 +527,7 @@ theora_dec_sink_query (GstPad * pad, GstQuery * query)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
res = FALSE;
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -331,7 +331,7 @@ vorbis_dec_src_query (GstPad * pad, GstQuery * query)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
res = FALSE;
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
@ -365,7 +365,7 @@ vorbis_dec_sink_query (GstPad * pad, GstQuery * query)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
res = FALSE;
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
error:
|
error:
|
||||||
|
|
|
@ -475,7 +475,7 @@ gst_vorbisenc_src_query (GstPad * pad, GstQuery * query)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
res = FALSE;
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -508,7 +508,7 @@ gst_vorbisenc_sink_query (GstPad * pad, GstQuery * query)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
res = FALSE;
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -234,8 +234,10 @@ gst_adder_query (GstPad * pad, GstQuery * query)
|
||||||
/* FIXME: what to do about the length? query all pads upstream and
|
/* FIXME: what to do about the length? query all pads upstream and
|
||||||
* pick the longest length? or the shortest length? or what? */
|
* pick the longest length? or the shortest length? or what? */
|
||||||
case GST_QUERY_DURATION:
|
case GST_QUERY_DURATION:
|
||||||
|
res = FALSE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
res = gst_pad_query_default (pad, query);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue