Commit 0126e756 authored by Nicolas Dufresne's avatar Nicolas Dufresne

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
parent 3f15e679
...@@ -3360,11 +3360,13 @@ setup_other_pool: ...@@ -3360,11 +3360,13 @@ setup_other_pool:
} }
} }
/* For simplicity, simply read back the active configuration, so our base if (pool) {
* class get the right information */ /* For simplicity, simply read back the active configuration, so our base
config = gst_buffer_pool_get_config (pool); * class get the right information */
gst_buffer_pool_config_get_params (config, NULL, &size, &min, &max); config = gst_buffer_pool_get_config (pool);
gst_structure_free (config); gst_buffer_pool_config_get_params (config, NULL, &size, &min, &max);
gst_structure_free (config);
}
done: done:
if (update) if (update)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment