mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
691ab727b0
The on_preview callback gets called with NULL if the buffer in the queue is too small, so we need to handle the case where the array is NULL. Also there is a bug in the android source which makes it drop one of the buffers so if we had 5 buffers, and we renegotiate to a higher resolution, then we'd only get 4 calls to on_preview_frame with NULL, with one being dropped. This means we can't reallocate the buffers in the if (data == NULL) case because we might end up with 0 buffers in the end. |
||
---|---|---|
.. | ||
com/gstreamer | ||
gst-android-graphics-imageformat.c | ||
gst-android-graphics-imageformat.h | ||
gst-android-graphics-surfacetexture.c | ||
gst-android-graphics-surfacetexture.h | ||
gst-android-hardware-camera.c | ||
gst-android-hardware-camera.h | ||
gst-androidcamera.c | ||
gst-dvm.c | ||
gst-dvm.h | ||
gstahccallback.h | ||
gstahcsrc.c | ||
gstahcsrc.h | ||
Makefile.am |