Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7bd5f5a2
Commit
7bd5f5a2
authored
Mar 15, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/XVideo: fix crop (fixes #10973)
parent
5564e7b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+8
-8
No files found.
modules/video_output/xcb/xvideo.c
View file @
7bd5f5a2
...
@@ -700,26 +700,26 @@ static void Display (vout_display_t *vd, picture_t *pic, subpicture_t *subpictur
...
@@ -700,26 +700,26 @@ static void Display (vout_display_t *vd, picture_t *pic, subpicture_t *subpictur
vout_display_sys_t
*
p_sys
=
vd
->
sys
;
vout_display_sys_t
*
p_sys
=
vd
->
sys
;
xcb_shm_seg_t
segment
=
XCB_picture_GetSegment
(
pic
);
xcb_shm_seg_t
segment
=
XCB_picture_GetSegment
(
pic
);
xcb_void_cookie_t
ck
;
xcb_void_cookie_t
ck
;
video_format_t
fmt
;
if
(
!
p_sys
->
visible
)
if
(
!
p_sys
->
visible
)
goto
out
;
goto
out
;
video_format_ApplyRotation
(
&
fmt
,
&
vd
->
source
);
if
(
segment
)
if
(
segment
)
ck
=
xcb_xv_shm_put_image_checked
(
p_sys
->
conn
,
p_sys
->
port
,
ck
=
xcb_xv_shm_put_image_checked
(
p_sys
->
conn
,
p_sys
->
port
,
p_sys
->
window
,
p_sys
->
gc
,
segment
,
p_sys
->
id
,
0
,
p_sys
->
window
,
p_sys
->
gc
,
segment
,
p_sys
->
id
,
0
,
/* Src: */
vd
->
fmt
.
i_x_offset
,
/* Src: */
fmt
.
i_x_offset
,
fmt
.
i_y_offset
,
vd
->
fmt
.
i_y_offset
,
fmt
.
i_visible_width
,
fmt
.
i_visible_height
,
vd
->
fmt
.
i_visible_width
,
vd
->
fmt
.
i_visible_height
,
/* Dst: */
0
,
0
,
p_sys
->
width
,
p_sys
->
height
,
/* Dst: */
0
,
0
,
p_sys
->
width
,
p_sys
->
height
,
/* Memory: */
pic
->
p
->
i_pitch
/
pic
->
p
->
i_pixel_pitch
,
/* Memory: */
pic
->
p
->
i_pitch
/
pic
->
p
->
i_pixel_pitch
,
pic
->
p
->
i_lines
,
false
);
pic
->
p
->
i_lines
,
false
);
else
else
ck
=
xcb_xv_put_image_checked
(
p_sys
->
conn
,
p_sys
->
port
,
p_sys
->
window
,
ck
=
xcb_xv_put_image_checked
(
p_sys
->
conn
,
p_sys
->
port
,
p_sys
->
window
,
p_sys
->
gc
,
p_sys
->
id
,
p_sys
->
gc
,
p_sys
->
id
,
vd
->
fmt
.
i_x_offset
,
fmt
.
i_x_offset
,
fmt
.
i_y_offset
,
vd
->
fmt
.
i_y_offset
,
fmt
.
i_visible_width
,
fmt
.
i_visible_height
,
vd
->
fmt
.
i_visible_width
,
vd
->
fmt
.
i_visible_height
,
0
,
0
,
p_sys
->
width
,
p_sys
->
height
,
0
,
0
,
p_sys
->
width
,
p_sys
->
height
,
pic
->
p
->
i_pitch
/
pic
->
p
->
i_pixel_pitch
,
pic
->
p
->
i_pitch
/
pic
->
p
->
i_pixel_pitch
,
pic
->
p
->
i_lines
,
pic
->
p
->
i_lines
,
...
...
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