GNOME Bugzilla – Bug 771035
vaapiplugins: set updated image size to bufferpool on sink pad
Last modified: 2016-10-31 14:30:43 UTC
This issue is mostly same as bug 769248. Test pipeline: gst-launch-1.0 videotestsrc ! video/x-raw,width=800,height=600 ! vaapisink This leads to mismatch between bufferpool's set size and real allocated buffer size.
Created attachment 335063 [details] [review] plugins: set allocator's image size to the bufferpool of sink pad
Created attachment 335064 [details] [review] plugins: set allocator's image size to the bufferpool of sink pad
Review of attachment 335064 [details] [review]: ::: gst/vaapi/gstvaapipluginbase.c @@ +651,3 @@ goto error_create_allocator; + + gst_allocator_get_vaapi_image_size (plugin->sinkpad_allocator, &size); Please initialize 'size' before, since gst_allocator_get_vaapi_image_size() might fail. size = GST_VIDEO_INFO_SIZE (&vi);