imagefreeze: Error out if we have no caps yet

This commit is contained in:
Sebastian Dröge 2014-05-02 17:02:02 +02:00
parent 218294b9f3
commit 4933394d35

View file

@ -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);