diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-06-08 18:22:36 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-06-08 20:16:28 +0200 |
commit | de514c63d1c07110ddf57f28c9a43115530c85e5 (patch) | |
tree | f9a08d48ea0ab3773cfb8916a67f21db25b2032a | |
parent | f8168cd75f12d31332e981dcb2bbb8b56af967ec (diff) |
filesrc/fdsrc: indicate dynamic size handling to basesrc
-rw-r--r-- | plugins/elements/gstfdsrc.c | 3 | ||||
-rw-r--r-- | plugins/elements/gstfilesrc.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/plugins/elements/gstfdsrc.c b/plugins/elements/gstfdsrc.c index 6d7f0f9ce..3d38c6c59 100644 --- a/plugins/elements/gstfdsrc.c +++ b/plugins/elements/gstfdsrc.c @@ -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); } } diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index cc07a72a0..f8dbfe2c4 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -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 */ |