Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5ea1287e
Commit
5ea1287e
authored
Jul 23, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Preserve the frame rate when converting video formats.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
90ed6361
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
gstdemux.c
dlls/winegstreamer/gstdemux.c
+6
-1
No files found.
dlls/winegstreamer/gstdemux.c
View file @
5ea1287e
...
...
@@ -1718,13 +1718,18 @@ static HRESULT gstdecoder_source_get_media_type(struct gstdemux_source *pin,
if
(
!
strcmp
(
type
,
"video/x-raw"
)
&&
index
<
ARRAY_SIZE
(
video_formats
))
{
gint
width
,
height
;
gint
width
,
height
,
fps_n
,
fps_d
;
GstVideoInfo
info
;
gst_caps_unref
(
caps
);
gst_structure_get_int
(
structure
,
"width"
,
&
width
);
gst_structure_get_int
(
structure
,
"height"
,
&
height
);
gst_video_info_set_format
(
&
info
,
video_formats
[
index
],
width
,
height
);
if
(
gst_structure_get_fraction
(
structure
,
"framerate"
,
&
fps_n
,
&
fps_d
)
&&
fps_n
)
{
info
.
fps_n
=
fps_n
;
info
.
fps_d
=
fps_d
;
}
if
(
!
amt_from_gst_video_info
(
&
info
,
mt
))
return
E_OUTOFMEMORY
;
return
S_OK
;
...
...
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