mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
filesrc/fdsrc: indicate dynamic size handling to basesrc
This commit is contained in:
parent
f8168cd75f
commit
de514c63d1
2 changed files with 5 additions and 0 deletions
|
@ -275,6 +275,8 @@ gst_fd_src_update_fd (GstFdSrc * src, guint64 size)
|
|||
|
||||
GST_INFO_OBJECT (src, "marking fd %d as seekable", src->fd);
|
||||
src->seekable_fd = TRUE;
|
||||
|
||||
gst_base_src_set_dynamic_size (GST_BASE_SRC (src), TRUE);
|
||||
}
|
||||
return;
|
||||
|
||||
|
@ -282,6 +284,7 @@ not_seekable:
|
|||
{
|
||||
GST_INFO_OBJECT (src, "marking fd %d as NOT seekable", src->fd);
|
||||
src->seekable_fd = FALSE;
|
||||
gst_base_src_set_dynamic_size (GST_BASE_SRC (src), FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1019,6 +1019,8 @@ gst_file_src_start (GstBaseSrc * basesrc)
|
|||
* don't know their length, so seeking isn't useful/meaningful */
|
||||
src->seekable = src->seekable && src->is_regular;
|
||||
|
||||
gst_base_src_set_dynamic_size (basesrc, src->seekable);
|
||||
|
||||
return TRUE;
|
||||
|
||||
/* ERROR */
|
||||
|
|
Loading…
Reference in a new issue