mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
video-frame: fix invalid plane id on video frame mapping error
This commit is contained in:
parent
28537dc73c
commit
8ab19ba9ca
1 changed files with 1 additions and 3 deletions
|
@ -126,10 +126,8 @@ no_metadata:
|
||||||
frame_map_failed:
|
frame_map_failed:
|
||||||
{
|
{
|
||||||
GST_ERROR ("failed to map video frame plane %d", i);
|
GST_ERROR ("failed to map video frame plane %d", i);
|
||||||
do {
|
while (--i >= 0)
|
||||||
i--;
|
|
||||||
gst_video_meta_unmap (meta, i, &frame->map[i]);
|
gst_video_meta_unmap (meta, i, &frame->map[i]);
|
||||||
} while (i > 0);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
map_failed:
|
map_failed:
|
||||||
|
|
Loading…
Reference in a new issue