X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/b59c46fd2f2c5d094ad9d7b72fec772b99356419..d7255a305a1c7e583dc9c3ffb1c373ff7da98da6:/clients/playrtp.c diff --git a/clients/playrtp.c b/clients/playrtp.c index d28369f..8878e8c 100644 --- a/clients/playrtp.c +++ b/clients/playrtp.c @@ -795,6 +795,12 @@ int main(int argc, char **argv) { struct sockaddr *addr; socklen_t addr_len; if(!strcmp(sl.s[0], "-")) { + /* We'll need a connection to request the incoming stream, so open one if + * we don't have one already */ + if(!c) { + if(!(c = disorder_new(1))) exit(EXIT_FAILURE); + if(disorder_connect(c)) exit(EXIT_FAILURE); + } /* Pick address family to match known-working connectivity to the server */ int family = disorder_client_af(c); /* Get a list of interfaces */