summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-07-17 19:58:07 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-07-17 19:58:07 +0100
commita34b3ac03010bbdd5375b93a8e4f69a8642ac631 (patch)
tree7fde4c374ad665d828a05752ff3f252df260b604
parent11080b7a1f9bec57fab579e26c00e2b02bdf841d (diff)
insanity-file-appsrc: don't unref stream in case no stream was created
-rw-r--r--tests/insanity-file-appsrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/insanity-file-appsrc.c b/tests/insanity-file-appsrc.c
index 25976d1..f45f3bd 100644
--- a/tests/insanity-file-appsrc.c
+++ b/tests/insanity-file-appsrc.c
@@ -142,8 +142,8 @@ seek_data (GstElement * appsrc, guint64 position, App * app)
static void
cleanup (App * app)
{
-
- g_object_unref (app->stream);
+ if (app->stream)
+ g_object_unref (app->stream);
g_free (app->mode);
g_free (app);