mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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
This commit is contained in:
parent
a7809ecc8f
commit
2102fdc983
1 changed files with 2 additions and 0 deletions
|
@ -410,6 +410,8 @@ gst_discoverer_info_copy (GstDiscovererInfo * ptr)
|
||||||
stream_map);
|
stream_map);
|
||||||
}
|
}
|
||||||
ret->duration = ptr->duration;
|
ret->duration = ptr->duration;
|
||||||
|
ret->result = ptr->result;
|
||||||
|
ret->seekable = ptr->seekable;
|
||||||
if (ptr->misc)
|
if (ptr->misc)
|
||||||
ret->misc = gst_structure_copy (ptr->misc);
|
ret->misc = gst_structure_copy (ptr->misc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue