Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
4e357385
Commit
4e357385
authored
Nov 25, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB-XVideo: warn if picture resolution is not supported
parent
15288858
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+14
-0
No files found.
modules/video_output/xcb/xvideo.c
View file @
4e357385
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_vout_display.h>
#include <vlc_vout_display.h>
#include <vlc_picture_pool.h>
#include <vlc_picture_pool.h>
#include <vlc_dialog.h>
#include "xcb_vlc.h"
#include "xcb_vlc.h"
...
@@ -269,6 +270,19 @@ FindFormat (vout_display_t *vd,
...
@@ -269,6 +270,19 @@ FindFormat (vout_display_t *vd,
msg_Warn
(
vd
,
"incompatible size %ux%u -> %"
PRIu32
"x%"
PRIu32
,
msg_Warn
(
vd
,
"incompatible size %ux%u -> %"
PRIu32
"x%"
PRIu32
,
fmt
->
i_width
,
fmt
->
i_height
,
fmt
->
i_width
,
fmt
->
i_height
,
i
->
width
,
i
->
height
);
i
->
width
,
i
->
height
);
var_Create
(
vd
->
p_libvlc
,
"xvideo-resolution-error"
,
VLC_VAR_BOOL
);
if
(
!
var_GetBool
(
vd
->
p_libvlc
,
"xvideo-resolution-error"
))
{
dialog_FatalWait
(
vd
,
_
(
"Video acceleration not available"
),
_
(
"Your video output acceleration driver does not support "
"the required resolution: %ux%u pixels. The maximum "
"supported resolution is %"
PRIu32
"x%"
PRIu32
".
\n
"
"Video output acceleration will be disabled. However, "
"rendering videos with overly large resolution "
"may cause severe performance degration."
),
width
,
height
,
i
->
width
,
i
->
height
);
var_SetBool
(
vd
->
p_libvlc
,
"xvideo-resolution-error"
,
true
);
}
free
(
i
);
free
(
i
);
continue
;
continue
;
}
}
...
...
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