Commit c6d85fc2 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Move the "flip" field to struct wg_parser_stream.

parent b00e25a2
...@@ -77,6 +77,7 @@ struct wg_parser ...@@ -77,6 +77,7 @@ struct wg_parser
struct wg_parser_stream struct wg_parser_stream
{ {
GstPad *their_src, *post_sink, *post_src, *my_sink; GstPad *their_src, *post_sink, *post_src, *my_sink;
GstElement *flip;
GstSegment *segment; GstSegment *segment;
}; };
...@@ -139,7 +140,6 @@ struct parser_source ...@@ -139,7 +140,6 @@ struct parser_source
struct wg_parser_stream *wg_stream; struct wg_parser_stream *wg_stream;
GstElement *flip;
GstCaps *caps; GstCaps *caps;
SourceSeeking seek; SourceSeeking seek;
...@@ -1335,7 +1335,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct parser *Th ...@@ -1335,7 +1335,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct parser *Th
stream->post_sink = gst_element_get_static_pad(deinterlace, "sink"); stream->post_sink = gst_element_get_static_pad(deinterlace, "sink");
stream->post_src = gst_element_get_static_pad(vconv2, "src"); stream->post_src = gst_element_get_static_pad(vconv2, "src");
pin->flip = flip; stream->flip = flip;
} }
else if (!strcmp(typename, "audio/x-raw")) else if (!strcmp(typename, "audio/x-raw"))
{ {
...@@ -2417,7 +2417,7 @@ static HRESULT WINAPI GSTOutPin_DecideBufferSize(struct strmbase_source *iface, ...@@ -2417,7 +2417,7 @@ static HRESULT WINAPI GSTOutPin_DecideBufferSize(struct strmbase_source *iface,
VIDEOINFOHEADER *format = (VIDEOINFOHEADER *)pin->pin.pin.mt.pbFormat; VIDEOINFOHEADER *format = (VIDEOINFOHEADER *)pin->pin.pin.mt.pbFormat;
buffer_size = format->bmiHeader.biSizeImage; buffer_size = format->bmiHeader.biSizeImage;
gst_util_set_object_arg(G_OBJECT(pin->flip), "method", gst_util_set_object_arg(G_OBJECT(stream->flip), "method",
(format->bmiHeader.biCompression == BI_RGB (format->bmiHeader.biCompression == BI_RGB
|| format->bmiHeader.biCompression == BI_BITFIELDS) ? "vertical-flip" : "none"); || format->bmiHeader.biCompression == BI_BITFIELDS) ? "vertical-flip" : "none");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment