mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
plugin: Check importer presence before proposing allocation
In some cases importer might not be determined here yet. Check if we have it to avoid a crash.
This commit is contained in:
@@ -431,6 +431,11 @@ gst_clapper_sink_propose_allocation (GstBaseSink *bsink, GstQuery *query)
|
|||||||
guint size, min_buffers;
|
guint size, min_buffers;
|
||||||
gboolean need_pool;
|
gboolean need_pool;
|
||||||
|
|
||||||
|
if (!self->importer) {
|
||||||
|
GST_DEBUG_OBJECT (self, "No importer to propose allocation");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
gst_query_parse_allocation (query, &caps, &need_pool);
|
gst_query_parse_allocation (query, &caps, &need_pool);
|
||||||
|
|
||||||
if (!caps) {
|
if (!caps) {
|
||||||
|
Reference in New Issue
Block a user