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
07061281
Commit
07061281
authored
Feb 10, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Avoid using Wine debug functions in existing_new_pad().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68f0cc4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
gstdemux.c
dlls/winegstreamer/gstdemux.c
+9
-16
No files found.
dlls/winegstreamer/gstdemux.c
View file @
07061281
...
...
@@ -1585,17 +1585,10 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
{
struct
wg_parser_stream
*
stream
;
const
char
*
typename
;
char
*
name
;
GstCaps
*
caps
;
GstStructure
*
arg
;
int
ret
;
TRACE
(
"parser %p, bin %p, pad %p.
\n
"
,
parser
,
bin
,
pad
);
name
=
gst_pad_get_name
(
pad
);
TRACE
(
"Name: %s
\n
"
,
name
);
g_free
(
name
);
caps
=
gst_pad_query_caps
(
pad
,
NULL
);
caps
=
gst_caps_make_writable
(
caps
);
arg
=
gst_caps_get_structure
(
caps
,
0
);
...
...
@@ -1612,7 +1605,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
* necessarily consume it. In particular, the video renderer can't. */
if
(
!
(
deinterlace
=
gst_element_factory_make
(
"deinterlace"
,
NULL
)))
{
ERR
(
"F
ailed to create deinterlace, are %u-bit GStreamer
\"
good
\"
plugins installed?
\n
"
,
fprintf
(
stderr
,
"winegstreamer: f
ailed to create deinterlace, are %u-bit GStreamer
\"
good
\"
plugins installed?
\n
"
,
8
*
(
int
)
sizeof
(
void
*
));
goto
out
;
}
...
...
@@ -1622,7 +1615,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
* formats either. Add a videoconvert to swap color spaces. */
if
(
!
(
vconv
=
gst_element_factory_make
(
"videoconvert"
,
NULL
)))
{
ERR
(
"F
ailed to create videoconvert, are %u-bit GStreamer
\"
base
\"
plugins installed?
\n
"
,
fprintf
(
stderr
,
"winegstreamer: f
ailed to create videoconvert, are %u-bit GStreamer
\"
base
\"
plugins installed?
\n
"
,
8
*
(
int
)
sizeof
(
void
*
));
goto
out
;
}
...
...
@@ -1630,7 +1623,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
/* GStreamer outputs RGB video top-down, but DirectShow expects bottom-up. */
if
(
!
(
flip
=
gst_element_factory_make
(
"videoflip"
,
NULL
)))
{
ERR
(
"F
ailed to create videoflip, are %u-bit GStreamer
\"
good
\"
plugins installed?
\n
"
,
fprintf
(
stderr
,
"winegstreamer: f
ailed to create videoflip, are %u-bit GStreamer
\"
good
\"
plugins installed?
\n
"
,
8
*
(
int
)
sizeof
(
void
*
));
goto
out
;
}
...
...
@@ -1639,7 +1632,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
* to do the final conversion. */
if
(
!
(
vconv2
=
gst_element_factory_make
(
"videoconvert"
,
NULL
)))
{
ERR
(
"F
ailed to create videoconvert, are %u-bit GStreamer
\"
base
\"
plugins installed?
\n
"
,
fprintf
(
stderr
,
"winegstreamer: f
ailed to create videoconvert, are %u-bit GStreamer
\"
base
\"
plugins installed?
\n
"
,
8
*
(
int
)
sizeof
(
void
*
));
goto
out
;
}
...
...
@@ -1672,7 +1665,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
* depth and channel count. */
if
(
!
(
convert
=
gst_element_factory_make
(
"audioconvert"
,
NULL
)))
{
ERR
(
"F
ailed to create audioconvert, are %u-bit GStreamer
\"
base
\"
plugins installed?
\n
"
,
fprintf
(
stderr
,
"winegstreamer: f
ailed to create audioconvert, are %u-bit GStreamer
\"
base
\"
plugins installed?
\n
"
,
8
*
(
int
)
sizeof
(
void
*
));
goto
out
;
}
...
...
@@ -1688,7 +1681,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
{
if
((
ret
=
gst_pad_link
(
pad
,
stream
->
post_sink
))
<
0
)
{
ERR
(
"Failed to link decodebin source pad to post-processing elements, error %s.
\n
"
,
GST_ERROR
(
"Failed to link decodebin source pad to post-processing elements, error %s.
"
,
gst_pad_link_get_name
(
ret
));
gst_object_unref
(
stream
->
post_sink
);
stream
->
post_sink
=
NULL
;
...
...
@@ -1697,7 +1690,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
if
((
ret
=
gst_pad_link
(
stream
->
post_src
,
stream
->
my_sink
))
<
0
)
{
ERR
(
"Failed to link post-processing elements to our sink pad, error %s.
\n
"
,
GST_ERROR
(
"Failed to link post-processing elements to our sink pad, error %s.
"
,
gst_pad_link_get_name
(
ret
));
gst_object_unref
(
stream
->
post_src
);
stream
->
post_src
=
NULL
;
...
...
@@ -1708,7 +1701,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct wg_parser
}
else
if
((
ret
=
gst_pad_link
(
pad
,
stream
->
my_sink
))
<
0
)
{
ERR
(
"Failed to link decodebin source pad to our sink pad, error %s.
\n
"
,
GST_ERROR
(
"Failed to link decodebin source pad to our sink pad, error %s.
"
,
gst_pad_link_get_name
(
ret
));
goto
out
;
}
...
...
@@ -1723,7 +1716,7 @@ static void existing_new_pad(GstElement *bin, GstPad *pad, gpointer user)
{
struct
wg_parser
*
This
=
user
;
TRACE
(
"%p %p %p
\n
"
,
This
,
bin
,
pad
);
GST_LOG
(
"parser %p, bin %p, pad %p.
"
,
This
,
bin
,
pad
);
if
(
gst_pad_is_linked
(
pad
))
return
;
...
...
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