mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
v4l2object: Pool might be NULL in decide allocation
If special stride is needed and downstream don't support VideoMeta, pool might be NULL in order to let the baseclass create a generic pool. This would lead to assertion with on Exynos with: gst-launch-1.0 -v filesrc location=mov ! qtdemux ! h264parse ! \ v4l2video8dec ! fakesink https://bugzilla.gnome.org/show_bug.cgi?id=732707
This commit is contained in:
parent
3f15e67923
commit
0126e75676
1 changed files with 7 additions and 5 deletions
|
@ -3360,11 +3360,13 @@ setup_other_pool:
|
|||
}
|
||||
}
|
||||
|
||||
/* For simplicity, simply read back the active configuration, so our base
|
||||
* class get the right information */
|
||||
config = gst_buffer_pool_get_config (pool);
|
||||
gst_buffer_pool_config_get_params (config, NULL, &size, &min, &max);
|
||||
gst_structure_free (config);
|
||||
if (pool) {
|
||||
/* For simplicity, simply read back the active configuration, so our base
|
||||
* class get the right information */
|
||||
config = gst_buffer_pool_get_config (pool);
|
||||
gst_buffer_pool_config_get_params (config, NULL, &size, &min, &max);
|
||||
gst_structure_free (config);
|
||||
}
|
||||
|
||||
done:
|
||||
if (update)
|
||||
|
|
Loading…
Reference in a new issue