diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-09-05 00:08:41 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-09-05 00:08:41 +0200 |
commit | 8bd32d9346b84acbec3097847237e0b7210cdfee (patch) | |
tree | 6b050dbee2e78bf5a5f15ed66ff6950881c7848a /src/sydra.c | |
parent | refactoring (diff) |
refactoring
Diffstat (limited to 'src/sydra.c')
-rw-r--r-- | src/sydra.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sydra.c b/src/sydra.c index a32082c..ae31ea9 100644 --- a/src/sydra.c +++ b/src/sydra.c @@ -185,12 +185,9 @@ int main_loop(options_t* opt) { log_printf(INFO, "entering main loop"); - GMainLoop *loop = g_main_loop_new(NULL, FALSE); - char* sender_desc = build_sender_pipeline_desc(opt); if(!sender_desc) { log_printf(ERROR, "memory error while building sender pipeline description"); - gst_object_unref(GST_OBJECT(loop)); return -1; } @@ -202,11 +199,12 @@ int main_loop(options_t* opt) free(sender_desc); if(pipeline) gst_object_unref(GST_OBJECT(pipeline)); - gst_object_unref(GST_OBJECT(loop)); return -1; } free(sender_desc); + GMainLoop *loop = g_main_loop_new(NULL, FALSE); + GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline)); gst_bus_add_watch(bus, bus_call, loop); gst_object_unref(bus); |