summaryrefslogtreecommitdiffstats
path: root/stream/stream.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-30 22:51:37 +0200
committerwm4 <wm4@nowhere>2015-09-30 22:51:37 +0200
commitaff6e8e8da4aedda42bff9260ed46cf01985bdc0 (patch)
treefd2cfcfa203f1769771ef0f30ade7609b7f4b728 /stream/stream.c
parent1b7e8ff6c590ef3ef289c7468941acd6cf450e41 (diff)
downloadmpv-aff6e8e8da4aedda42bff9260ed46cf01985bdc0.tar.bz2
mpv-aff6e8e8da4aedda42bff9260ed46cf01985bdc0.tar.xz
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.
Diffstat (limited to 'stream/stream.c')
-rw-r--r--stream/stream.c6
1 files changed, 4 insertions, 2 deletions
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;
}