summaryrefslogtreecommitdiff
path: root/src/sydra.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-01 01:00:52 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-01 01:00:52 +0200
commitcbdf9a12a01e7c17b846a76ea432aa6be4cc3baf (patch)
treedfe97ab75b70c573cae37b7a6f4e96104f4002f7 /src/sydra.c
parentsome cleanup (diff)
resolving remote rtp works now
Diffstat (limited to 'src/sydra.c')
-rw-r--r--src/sydra.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sydra.c b/src/sydra.c
index 22f0157..f94610c 100644
--- a/src/sydra.c
+++ b/src/sydra.c
@@ -108,7 +108,7 @@ static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer data)
{
GstClock *clock;
gst_message_parse_new_clock(msg, &clock);
- log_printf(INFO, "New clock: %s", (clock ? GST_OBJECT_NAME (clock) : "NULL"));
+ log_printf(NOTICE, "New clock: %s", (clock ? GST_OBJECT_NAME (clock) : "NULL"));
break;
}
case GST_MESSAGE_QOS: {
@@ -165,11 +165,11 @@ static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer data)
int main_loop(options_t* opt)
{
- log_printf(INFO, "entering main loop");
+ log_printf(NOTICE, "entering main loop");
struct udp_sinks sinks = { { NULL, NULL }, { NULL, NULL },
{ NULL, NULL }, { NULL, NULL }, opt->timeout_ };
- struct udp_sources sources = { NULL, NULL, NULL, NULL, opt->keepalive_int_ };
+ struct udp_sources sources = { NULL, NULL, NULL, NULL, opt->keepalive_int_, NULL };
GstElement *pipeline = opt->mode_ == SENDER ? create_sender_pipeline(opt, &sinks) :
create_receiver_pipeline(opt, &sources);
if(!pipeline) {
@@ -189,14 +189,14 @@ int main_loop(options_t* opt)
G_CALLBACK(gst_object_default_deep_notify), NULL);
}
- log_printf(INFO, "Set State: Paused");
+ log_printf(NOTICE, "Set State: Paused");
gst_element_set_state(pipeline, GST_STATE_PAUSED);
if((opt->mode_ == SENDER && !attach_udpsinks(&sinks)) ||
- (opt->mode_ == RECEIVER && !attach_udpsources(&sources)))
+ (opt->mode_ == RECEIVER && !attach_udpsources(&sources, opt->rtp_host_)))
return -1;
- log_printf(INFO, "Set State: Playing");
+ log_printf(NOTICE, "Set State: Playing");
gst_element_set_state(pipeline, GST_STATE_PLAYING);
g_unix_signal_add(SIGHUP, sig_handler_terminate, loop);