Commit 5c24b7e5 authored by Alfred Agrell's avatar Alfred Agrell Committed by Alexandre Julliard

winegstreamer: Use the new output_compressed property instead of mpegaudioparse in MPEG splitter.

parent 4592662d
......@@ -2214,7 +2214,7 @@ HRESULT mpeg_splitter_create(IUnknown *outer, IUnknown **out)
struct parser *object;
HRESULT hr;
if (FAILED(hr = parser_create(WG_PARSER_MPEGAUDIOPARSE, FALSE, &object)))
if (FAILED(hr = parser_create(WG_PARSER_DECODEBIN, TRUE, &object)))
return hr;
strmbase_filter_init(&object->filter, outer, &CLSID_MPEG1Splitter, &mpeg_splitter_ops);
......
......@@ -202,7 +202,6 @@ enum wg_parser_type
{
WG_PARSER_DECODEBIN,
WG_PARSER_AVIDEMUX,
WG_PARSER_MPEGAUDIOPARSE,
WG_PARSER_WAVPARSE,
};
......
......@@ -1806,31 +1806,6 @@ static BOOL avi_parser_init_gst(struct wg_parser *parser)
return TRUE;
}
static BOOL mpeg_audio_parser_init_gst(struct wg_parser *parser)
{
struct wg_parser_stream *stream;
GstElement *element;
if (!(element = create_element("mpegaudioparse", "good")))
return FALSE;
gst_bin_add(GST_BIN(parser->container), element);
if (!link_src_to_element(parser->my_src, element))
return FALSE;
if (!(stream = create_stream(parser)))
return FALSE;
if (!link_element_to_sink(element, stream->my_sink))
return FALSE;
gst_pad_set_active(stream->my_sink, 1);
parser->no_more_pads = true;
return TRUE;
}
static BOOL wave_parser_init_gst(struct wg_parser *parser)
{
struct wg_parser_stream *stream;
......@@ -1862,7 +1837,6 @@ static NTSTATUS wg_parser_create(void *args)
{
[WG_PARSER_DECODEBIN] = decodebin_parser_init_gst,
[WG_PARSER_AVIDEMUX] = avi_parser_init_gst,
[WG_PARSER_MPEGAUDIOPARSE] = mpeg_audio_parser_init_gst,
[WG_PARSER_WAVPARSE] = wave_parser_init_gst,
};
......
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