video-frame: fix invalid plane id on video frame mapping error

This commit is contained in:
Arnaud Vrac 2012-07-26 01:52:25 +02:00 committed by Sebastian Dröge
parent 28537dc73c
commit 8ab19ba9ca

View file

@ -126,10 +126,8 @@ no_metadata:
frame_map_failed:
{
GST_ERROR ("failed to map video frame plane %d", i);
do {
i--;
while (--i >= 0)
gst_video_meta_unmap (meta, i, &frame->map[i]);
} while (i > 0);
return FALSE;
}
map_failed: