GNOME Bugzilla – Bug 556955
[videocrop] fails to renegotiate
Last modified: 2009-02-19 12:04:01 UTC
When you change one of the crop properties (top/bottom/left/right) after the pipeline has gone to pauze/playing, the videocrop element is not renegotiating the caps and with the next pad_alloc comming from upstream, basetransform is still using the same method for allocing the buffer and this can cause a crash of the pipeline. (if going from proxy-alloc to non-proxy alloc function)
Created attachment 120865 [details] [review] videocrop.diff force recheck of buffer_alloc method
This was fixed some time ago with this commit: commit 6ab4698b95bed4ca4032b791d84f26fd2e11224a Author: Wim Taymans Date: Tue Nov 25 16:06:22 2008 +0000 gst/videocrop/gstvideocrop.*: Fix renegotiation when changing properties using the new basetransform features. Fixes ... Original commit message from CVS: * gst/videocrop/gstvideocrop.c: (gst_video_crop_init), (gst_video_crop_transform), (gst_video_crop_transform_caps), (gst_video_crop_set_caps), (gst_video_crop_set_property): * gst/videocrop/gstvideocrop.h: Fix renegotiation when changing properties using the new basetransform features. Fixes #561502. * tests/icles/Makefile.am: * tests/icles/videocrop2-test.c: (make_pipeline), (main): Add crazy interactive test unit for dynamically changing properties.