Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
32cabd1b
Commit
32cabd1b
authored
Apr 18, 2023
by
Ziqing Hui
Committed by
Alexandre Julliard
May 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Introduce format_is_compressed.
parent
24019f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
wg_parser.c
dlls/winegstreamer/wg_parser.c
+9
-9
No files found.
dlls/winegstreamer/wg_parser.c
View file @
32cabd1b
...
...
@@ -119,6 +119,13 @@ struct wg_parser_stream
gchar
*
tags
[
WG_PARSER_TAG_COUNT
];
};
static
bool
format_is_compressed
(
struct
wg_format
*
format
)
{
return
format
->
major_type
!=
WG_MAJOR_TYPE_UNKNOWN
&&
format
->
major_type
!=
WG_MAJOR_TYPE_VIDEO
&&
format
->
major_type
!=
WG_MAJOR_TYPE_AUDIO
;
}
static
NTSTATUS
wg_parser_get_stream_count
(
void
*
args
)
{
struct
wg_parser_get_stream_count_params
*
params
=
args
;
...
...
@@ -475,12 +482,7 @@ static gboolean autoplug_continue_cb(GstElement * decodebin, GstPad *pad, GstCap
wg_format_from_caps
(
&
format
,
caps
);
if
(
format
.
major_type
!=
WG_MAJOR_TYPE_UNKNOWN
&&
format
.
major_type
!=
WG_MAJOR_TYPE_VIDEO
&&
format
.
major_type
!=
WG_MAJOR_TYPE_AUDIO
)
return
false
;
return
true
;
return
!
format_is_compressed
(
&
format
);
}
static
GstAutoplugSelectResult
autoplug_select_cb
(
GstElement
*
bin
,
GstPad
*
pad
,
...
...
@@ -952,9 +954,7 @@ static void pad_added_cb(GstElement *element, GstPad *pad, gpointer user)
gst_caps_unref
(
caps
);
/* For compressed stream, create an extra decodebin to decode it. */
if
(
stream
->
stream_format
.
major_type
!=
WG_MAJOR_TYPE_UNKNOWN
&&
stream
->
stream_format
.
major_type
!=
WG_MAJOR_TYPE_VIDEO
&&
stream
->
stream_format
.
major_type
!=
WG_MAJOR_TYPE_AUDIO
)
if
(
format_is_compressed
(
&
stream
->
stream_format
))
{
if
(
!
stream_decodebin_create
(
stream
))
{
...
...
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