mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
gst-plugins-good: atoms_recovery: Handled buffer mapping failure
https://bugzilla.gnome.org/show_bug.cgi?id=789413
This commit is contained in:
parent
923b83a48c
commit
1aed3948a8
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ atoms_recov_write_ftyp_info (FILE * f, AtomFTYP * ftyp, GstBuffer * prefix)
|
|||
if (prefix) {
|
||||
GstMapInfo map;
|
||||
|
||||
gst_buffer_map (prefix, &map, GST_MAP_READ);
|
||||
if (!gst_buffer_map (prefix, &map, GST_MAP_READ)) {
|
||||
return FALSE;
|
||||
}
|
||||
if (fwrite (map.data, 1, map.size, f) != map.size) {
|
||||
gst_buffer_unmap (prefix, &map);
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue