diff options
Diffstat (limited to 'gst/freeze')
-rw-r--r-- | gst/freeze/gstfreeze.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/freeze/gstfreeze.c b/gst/freeze/gstfreeze.c index 384c7720..475bc191 100644 --- a/gst/freeze/gstfreeze.c +++ b/gst/freeze/gstfreeze.c @@ -177,10 +177,9 @@ gst_freeze_loop (GstElement * element) break; default: gst_pad_event_default (GST_PAD (freeze->sinkpad), GST_EVENT (data)); + break; } - } - - if (GST_IS_BUFFER (data)) { + } else if (GST_IS_BUFFER (data)) { if (g_list_length (freeze->buffers) < freeze->max_buffers || freeze->max_buffers == 0) { freeze->buffers = g_list_append (freeze->buffers, GST_BUFFER (data)); @@ -190,6 +189,7 @@ gst_freeze_loop (GstElement * element) gst_buffer_unref (GST_BUFFER (data)); } } + data = NULL; } if (freeze->buffers == NULL) { |