diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-23 21:55:37 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-23 21:55:37 (GMT) |
commit | fae0aa58c19a1918e7b7750b4862e2abcbc55788 (patch) | |
tree | 7045fd1aba8f0a5b8da4641a1bc8a7b2be40b193 /src/lib.c | |
parent | 42440099f201f4d438c1dd2918c77bc8e95814bd (diff) | |
download | soup-transcoding-proxy-fae0aa58c19a1918e7b7750b4862e2abcbc55788.zip soup-transcoding-proxy-fae0aa58c19a1918e7b7750b4862e2abcbc55788.tar.gz |
cleanup: Don't set pipeline state if there's no pipeline
Diffstat (limited to 'src/lib.c')
-rw-r--r-- | src/lib.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -94,8 +94,10 @@ stp_cleanup_transcode_server_ctx (TranscodeServerCtx *ctx) g_list_free (ctx->clients); /* Cleanup gstreamer pipeline */ - gst_element_set_state (ctx->pipeline, GST_STATE_NULL); - gst_object_unref (ctx->pipeline); + if (ctx->pipeline) { + gst_element_set_state (ctx->pipeline, GST_STATE_NULL); + gst_object_unref (ctx->pipeline); + } g_free (ctx); } |