diff options
author | Sven C. Dack <sven.c.dack@virginmedia.com> | 2011-04-12 09:33:19 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-12 09:33:19 +0200 |
commit | 44a8b0ddd98cc5ef9eeaae73f380c4048a77ffe2 (patch) | |
tree | 7b494aa06d1dfc7aa34c965f0b755d9fd8888a2d | |
parent | 9af209712099699d717596f55b08b3bac8b6b563 (diff) | |
download | ffmpeg-44a8b0ddd98cc5ef9eeaae73f380c4048a77ffe2.tar.gz |
Cosmetics: Rename variable param as the more appropriate dpyname.
-rw-r--r-- | libavdevice/x11grab.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index baf6fbba67..fdc8a6d22f 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -92,20 +92,20 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) int x_off = 0; int y_off = 0; int use_shm; - char *param, *offset; + char *dpyname, *offset; - param = av_strdup(s1->filename); - offset = strchr(param, '+'); + dpyname = av_strdup(s1->filename); + offset = strchr(dpyname, '+'); if (offset) { sscanf(offset, "%d,%d", &x_off, &y_off); x11grab->nomouse= strstr(offset, "nomouse"); *offset= 0; } - av_log(s1, AV_LOG_INFO, "device: %s -> display: %s x: %d y: %d width: %d height: %d\n", s1->filename, param, x_off, y_off, ap->width, ap->height); + av_log(s1, AV_LOG_INFO, "device: %s -> display: %s x: %d y: %d width: %d height: %d\n", s1->filename, dpyname, x_off, y_off, ap->width, ap->height); - dpy = XOpenDisplay(param); - av_freep(¶m); + dpy = XOpenDisplay(dpyname); + av_freep(&dpyname); if(!dpy) { av_log(s1, AV_LOG_ERROR, "Could not open X display.\n"); return AVERROR(EIO); |