From aff6e8e8da4aedda42bff9260ed46cf01985bdc0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 30 Sep 2015 22:51:37 +0200 Subject: stream: minor cleanup to verbose logging Don't print the URL that is opened twice. stream.c and stream_lavf.c each printed it once. Remove the logging from stream_lavf.c, and move the log call to a more interesting point. --- stream/stream.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'stream/stream.c') diff --git a/stream/stream.c b/stream/stream.c index 4f8ee119fb..a2c0ea2a9d 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -288,6 +288,8 @@ static int open_internal(const stream_info_t *sinfo, const char *url, int flags, s->is_network = sinfo->is_network; s->mode = flags & (STREAM_READ | STREAM_WRITE); + MP_VERBOSE(s, "Opening %s\n", url); + if ((s->mode & STREAM_WRITE) && !sinfo->can_write) { MP_VERBOSE(s, "No write access implemented.\n"); talloc_free(s); @@ -328,11 +330,11 @@ static int open_internal(const stream_info_t *sinfo, const char *url, int flags, s->uncached_type = s->type; - MP_VERBOSE(s, "Opened: %s\n", url); - if (s->mime_type) MP_VERBOSE(s, "Mime-type: '%s'\n", s->mime_type); + MP_VERBOSE(s, "Stream opened successfully.\n"); + *ret = s; return STREAM_OK; } -- cgit v1.2.3