mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-21 06:38:19 +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:
|
||||
{
|
||||
gst_query_set_seeking (query, src->segment.format,
|
||||
gst_base_src_seekable (src), 0, src->segment.duration);
|
||||
GstFormat format;
|
||||
|
||||
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;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue