From: Tim-Philipp Müller Date: Sat, 2 Apr 2016 09:09:07 +0000 (+0100) Subject: discoverer: copy over result and seekable fields when copying a discoverer info X-Git-Tag: 1.19.3~511^2~2913 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2102fdc983e13bc945c552a88c1c007f358363da;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst-libs/gst/pbutils/gstdiscoverer-types.c b/gst-libs/gst/pbutils/gstdiscoverer-types.c index e743430..60a49cc 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);