Merge commit 'c8e135ea9225137050a6315fd9ba9c0f242c90b6'
[ffmpeg.git] / libavdevice / xv.c
index 185de75..c3ed2e4 100644 (file)
@@ -151,7 +151,7 @@ static int xv_write_header(AVFormatContext *s)
                                          xv->window_width, xv->window_height,
                                          0, 0, 0);
         if (!xv->window_title) {
-            if (!(xv->window_title = av_strdup(s->filename))) {
+            if (!(xv->window_title = av_strdup(s->url))) {
                 ret = AVERROR(ENOMEM);
                 goto fail;
             }