diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-04-02 10:09:07 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-04-06 13:09:07 +0100 |
commit | 656f549662653ca73c77d52f25cf0f28536c21bc (patch) | |
tree | 4c3f90b68b4155e6ef87d75ba7b774551dd24a48 | |
parent | 1cdd30ecaf767e32c21940db686a33c4f05303bc (diff) | |
download | gstreamer-plugins-base-656f549662653ca73c77d52f25cf0f28536c21bc.tar.gz |
discoverer: copy over result and seekable fields when copying a discoverer info
The function gst_discoverer_info_copy doesn't copy the data members seekable
and result of the source GstDiscovererInfo.
In the case of copying a GstDiscovererInfo for later use, the seekbale will be
undefined, which in practice usually will be false, even though the seekable of
the original GstDiscovererInfo is true.
https://bugzilla.gnome.org/show_bug.cgi?id=762710
-rw-r--r-- | gst-libs/gst/pbutils/gstdiscoverer-types.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/pbutils/gstdiscoverer-types.c b/gst-libs/gst/pbutils/gstdiscoverer-types.c index e74343011..60a49cc59 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer-types.c +++ b/gst-libs/gst/pbutils/gstdiscoverer-types.c @@ -410,6 +410,8 @@ gst_discoverer_info_copy (GstDiscovererInfo * ptr) stream_map); } ret->duration = ptr->duration; + ret->result = ptr->result; + ret->seekable = ptr->seekable; if (ptr->misc) ret->misc = gst_structure_copy (ptr->misc); |