Commit 4933394d authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

imagefreeze: Error out if we have no caps yet

parent 218294b9
......@@ -695,6 +695,13 @@ gst_image_freeze_src_loop (GstPad * pad)
gboolean in_seg, eos;
g_mutex_lock (&self->lock);
if (!gst_pad_has_current_caps (pad)) {
GST_ERROR_OBJECT (pad, "Not negotiated yet");
g_mutex_unlock (&self->lock);
gst_pad_pause_task (self->srcpad);
return;
}
if (!self->buffer) {
GST_ERROR_OBJECT (pad, "Have no buffer yet");
g_mutex_unlock (&self->lock);
......
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