mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
imagefreeze: Error out if we have no caps yet
This commit is contained in:
parent
218294b9f3
commit
4933394d35
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue