Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
2c3f29c4
Commit
2c3f29c4
authored
Nov 26, 2014
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcbgrab: Support empty filename string correctly
Bug-Id: CID 1254664 CC: libav-stable@libav.org
parent
fa8934d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
xcbgrab.c
libavdevice/xcbgrab.c
+2
-2
No files found.
libavdevice/xcbgrab.c
View file @
2c3f29c4
...
@@ -594,10 +594,10 @@ static av_cold int xcbgrab_read_header(AVFormatContext *s)
...
@@ -594,10 +594,10 @@ static av_cold int xcbgrab_read_header(AVFormatContext *s)
int
screen_num
,
ret
;
int
screen_num
,
ret
;
const
xcb_setup_t
*
setup
;
const
xcb_setup_t
*
setup
;
c
->
conn
=
xcb_connect
(
s
->
filename
,
&
screen_num
);
c
->
conn
=
xcb_connect
(
s
->
filename
[
0
]
?
s
->
filename
:
NULL
,
&
screen_num
);
if
((
ret
=
xcb_connection_has_error
(
c
->
conn
)))
{
if
((
ret
=
xcb_connection_has_error
(
c
->
conn
)))
{
av_log
(
s
,
AV_LOG_ERROR
,
"Cannot open display %s, error %d.
\n
"
,
av_log
(
s
,
AV_LOG_ERROR
,
"Cannot open display %s, error %d.
\n
"
,
s
->
filename
?
s
->
filename
:
"default"
,
ret
);
s
->
filename
[
0
]
?
s
->
filename
:
"default"
,
ret
);
return
AVERROR
(
EIO
);
return
AVERROR
(
EIO
);
}
}
setup
=
xcb_get_setup
(
c
->
conn
);
setup
=
xcb_get_setup
(
c
->
conn
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment