mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +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;
|
gboolean in_seg, eos;
|
||||||
|
|
||||||
g_mutex_lock (&self->lock);
|
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) {
|
if (!self->buffer) {
|
||||||
GST_ERROR_OBJECT (pad, "Have no buffer yet");
|
GST_ERROR_OBJECT (pad, "Have no buffer yet");
|
||||||
g_mutex_unlock (&self->lock);
|
g_mutex_unlock (&self->lock);
|
||||||
|
|
Loading…
Reference in a new issue