discoverer: copy over result and seekable fields when copying a discoverer info
authorTim-Philipp Müller <tim@centricular.com>
Sat, 2 Apr 2016 09:09:07 +0000 (10:09 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Apr 2016 09:09:46 +0000 (10:09 +0100)
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

gst-libs/gst/pbutils/gstdiscoverer-types.c

index e743430..60a49cc 100644 (file)
@@ -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);