From f89d7ee7eb753bb65b0792b51c0e09882258cbe8 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Sun, 4 Dec 2011 22:19:23 +0100 Subject: [PATCH] Appsink fixes --- gst-libs/gst/app/gstappsink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c index 5904dc9..31f3630 100644 --- a/gst-libs/gst/app/gstappsink.c +++ b/gst-libs/gst/app/gstappsink.c @@ -662,7 +662,7 @@ dequeue_buffer (GstAppSink * appsink) gst_event_parse_caps (event, &caps); GST_DEBUG_OBJECT (appsink, "activating caps %" GST_PTR_FORMAT, caps); - gst_caps_replace (priv->last_caps, caps); + gst_caps_replace (&priv->last_caps, caps); break; } case GST_EVENT_SEGMENT: @@ -1165,7 +1165,7 @@ gst_app_sink_pull_sample (GstAppSink * appsink) if (!priv->started) goto not_started; - if (priv->num_buffers == 0) + if (priv->num_buffers > 0) break; if (priv->is_eos) -- 2.7.4