mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-21 22:58:16 +00:00
basesrc: reply to QUERY_SEEKING with original format. Fixes #584838.
This commit is contained in:
parent
c9915b767f
commit
4bb3702886
1 changed files with 9 additions and 2 deletions
|
@ -842,8 +842,15 @@ gst_base_src_default_query (GstBaseSrc * src, GstQuery * query)
|
||||||
|
|
||||||
case GST_QUERY_SEEKING:
|
case GST_QUERY_SEEKING:
|
||||||
{
|
{
|
||||||
gst_query_set_seeking (query, src->segment.format,
|
GstFormat format;
|
||||||
gst_base_src_seekable (src), 0, src->segment.duration);
|
|
||||||
|
gst_query_parse_seeking (query, &format, NULL, NULL, NULL);
|
||||||
|
if (format == src->segment.format) {
|
||||||
|
gst_query_set_seeking (query, src->segment.format,
|
||||||
|
gst_base_src_seekable (src), 0, src->segment.duration);
|
||||||
|
} else {
|
||||||
|
gst_query_set_seeking (query, format, FALSE, 0, -1);
|
||||||
|
}
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue