Commit 44a8b0dd authored by Sven C. Dack's avatar Sven C. Dack Committed by Carl Eugen Hoyos

Cosmetics: Rename variable param as the more appropriate dpyname.

parent 9af20971
...@@ -92,20 +92,20 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ...@@ -92,20 +92,20 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
int x_off = 0; int x_off = 0;
int y_off = 0; int y_off = 0;
int use_shm; int use_shm;
char *param, *offset; char *dpyname, *offset;
param = av_strdup(s1->filename); dpyname = av_strdup(s1->filename);
offset = strchr(param, '+'); offset = strchr(dpyname, '+');
if (offset) { if (offset) {
sscanf(offset, "%d,%d", &x_off, &y_off); sscanf(offset, "%d,%d", &x_off, &y_off);
x11grab->nomouse= strstr(offset, "nomouse"); x11grab->nomouse= strstr(offset, "nomouse");
*offset= 0; *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); dpy = XOpenDisplay(dpyname);
av_freep(&param); av_freep(&dpyname);
if(!dpy) { if(!dpy) {
av_log(s1, AV_LOG_ERROR, "Could not open X display.\n"); av_log(s1, AV_LOG_ERROR, "Could not open X display.\n");
return AVERROR(EIO); return AVERROR(EIO);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment