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
1fb0b500
Commit
1fb0b500
authored
Feb 22, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Use wide-char string literals.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0949cb45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
30 deletions
+14
-30
gstdemux.c
dlls/winegstreamer/gstdemux.c
+8
-16
main.c
dlls/winegstreamer/main.c
+5
-13
mfplat.c
dlls/winegstreamer/mfplat.c
+1
-1
No files found.
dlls/winegstreamer/gstdemux.c
View file @
1fb0b500
...
...
@@ -89,7 +89,6 @@ static inline struct parser *impl_from_strmbase_filter(struct strmbase_filter *i
return
CONTAINING_RECORD
(
iface
,
struct
parser
,
filter
);
}
static
const
WCHAR
wcsInputPinName
[]
=
{
'i'
,
'n'
,
'p'
,
'u'
,
't'
,
' '
,
'p'
,
'i'
,
'n'
,
0
};
static
const
IMediaSeekingVtbl
GST_Seeking_Vtbl
;
static
const
IQualityControlVtbl
GSTOutPin_QualityControl_Vtbl
;
...
...
@@ -1007,7 +1006,6 @@ static const struct strmbase_sink_ops sink_ops =
static
BOOL
decodebin_parser_filter_init_gst
(
struct
parser
*
filter
)
{
static
const
WCHAR
formatW
[]
=
{
'S'
,
't'
,
'r'
,
'e'
,
'a'
,
'm'
,
' '
,
'%'
,
'0'
,
'2'
,
'u'
,
0
};
struct
wg_parser
*
parser
=
filter
->
wg_parser
;
unsigned
int
i
,
stream_count
;
WCHAR
source_name
[
20
];
...
...
@@ -1015,7 +1013,7 @@ static BOOL decodebin_parser_filter_init_gst(struct parser *filter)
stream_count
=
unix_funcs
->
wg_parser_get_stream_count
(
parser
);
for
(
i
=
0
;
i
<
stream_count
;
++
i
)
{
swprintf
(
source_name
,
ARRAY_SIZE
(
source_name
),
formatW
,
i
);
swprintf
(
source_name
,
ARRAY_SIZE
(
source_name
),
L"Stream %02u"
,
i
);
if
(
!
create_pin
(
filter
,
unix_funcs
->
wg_parser_get_stream
(
parser
,
i
),
source_name
))
return
FALSE
;
}
...
...
@@ -1108,7 +1106,7 @@ HRESULT decodebin_parser_create(IUnknown *outer, IUnknown **out)
}
strmbase_filter_init
(
&
object
->
filter
,
outer
,
&
CLSID_decodebin_parser
,
&
filter_ops
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
wcsInputPinName
,
&
sink_ops
,
NULL
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
L"input pin"
,
&
sink_ops
,
NULL
);
object
->
init_gst
=
decodebin_parser_filter_init_gst
;
object
->
source_query_accept
=
decodebin_parser_source_query_accept
;
...
...
@@ -1587,10 +1585,9 @@ static const struct strmbase_sink_ops wave_parser_sink_ops =
static
BOOL
wave_parser_filter_init_gst
(
struct
parser
*
filter
)
{
static
const
WCHAR
source_name
[]
=
{
'o'
,
'u'
,
't'
,
'p'
,
'u'
,
't'
,
0
};
struct
wg_parser
*
parser
=
filter
->
wg_parser
;
if
(
!
create_pin
(
filter
,
unix_funcs
->
wg_parser_get_stream
(
parser
,
0
),
source_name
))
if
(
!
create_pin
(
filter
,
unix_funcs
->
wg_parser_get_stream
(
parser
,
0
),
L"output"
))
return
FALSE
;
return
TRUE
;
...
...
@@ -1625,7 +1622,6 @@ static HRESULT wave_parser_source_get_media_type(struct parser_source *pin,
HRESULT
wave_parser_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
{
static
const
WCHAR
sink_name
[]
=
{
'i'
,
'n'
,
'p'
,
'u'
,
't'
,
' '
,
'p'
,
'i'
,
'n'
,
0
};
struct
parser
*
object
;
if
(
!
parser_init_gstreamer
())
...
...
@@ -1641,7 +1637,7 @@ HRESULT wave_parser_create(IUnknown *outer, IUnknown **out)
}
strmbase_filter_init
(
&
object
->
filter
,
outer
,
&
CLSID_WAVEParser
,
&
filter_ops
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
sink_name
,
&
wave_parser_sink_ops
,
NULL
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
L"input pin"
,
&
wave_parser_sink_ops
,
NULL
);
object
->
init_gst
=
wave_parser_filter_init_gst
;
object
->
source_query_accept
=
wave_parser_source_query_accept
;
object
->
source_get_media_type
=
wave_parser_source_get_media_type
;
...
...
@@ -1668,7 +1664,6 @@ static const struct strmbase_sink_ops avi_splitter_sink_ops =
static
BOOL
avi_splitter_filter_init_gst
(
struct
parser
*
filter
)
{
static
const
WCHAR
formatW
[]
=
{
'S'
,
't'
,
'r'
,
'e'
,
'a'
,
'm'
,
' '
,
'%'
,
'0'
,
'2'
,
'u'
,
0
};
struct
wg_parser
*
parser
=
filter
->
wg_parser
;
uint32_t
i
,
stream_count
;
WCHAR
source_name
[
20
];
...
...
@@ -1676,7 +1671,7 @@ static BOOL avi_splitter_filter_init_gst(struct parser *filter)
stream_count
=
unix_funcs
->
wg_parser_get_stream_count
(
parser
);
for
(
i
=
0
;
i
<
stream_count
;
++
i
)
{
swprintf
(
source_name
,
ARRAY_SIZE
(
source_name
),
formatW
,
i
);
swprintf
(
source_name
,
ARRAY_SIZE
(
source_name
),
L"Stream %02u"
,
i
);
if
(
!
create_pin
(
filter
,
unix_funcs
->
wg_parser_get_stream
(
parser
,
i
),
source_name
))
return
FALSE
;
}
...
...
@@ -1713,7 +1708,6 @@ static HRESULT avi_splitter_source_get_media_type(struct parser_source *pin,
HRESULT
avi_splitter_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
{
static
const
WCHAR
sink_name
[]
=
{
'i'
,
'n'
,
'p'
,
'u'
,
't'
,
' '
,
'p'
,
'i'
,
'n'
,
0
};
struct
parser
*
object
;
if
(
!
parser_init_gstreamer
())
...
...
@@ -1729,7 +1723,7 @@ HRESULT avi_splitter_create(IUnknown *outer, IUnknown **out)
}
strmbase_filter_init
(
&
object
->
filter
,
outer
,
&
CLSID_AviSplitter
,
&
filter_ops
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
sink_name
,
&
avi_splitter_sink_ops
,
NULL
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
L"input pin"
,
&
avi_splitter_sink_ops
,
NULL
);
object
->
init_gst
=
avi_splitter_filter_init_gst
;
object
->
source_query_accept
=
avi_splitter_source_query_accept
;
object
->
source_get_media_type
=
avi_splitter_source_get_media_type
;
...
...
@@ -1761,10 +1755,9 @@ static const struct strmbase_sink_ops mpeg_splitter_sink_ops =
static
BOOL
mpeg_splitter_filter_init_gst
(
struct
parser
*
filter
)
{
static
const
WCHAR
source_name
[]
=
{
'A'
,
'u'
,
'd'
,
'i'
,
'o'
,
0
};
struct
wg_parser
*
parser
=
filter
->
wg_parser
;
if
(
!
create_pin
(
filter
,
unix_funcs
->
wg_parser_get_stream
(
parser
,
0
),
source_name
))
if
(
!
create_pin
(
filter
,
unix_funcs
->
wg_parser_get_stream
(
parser
,
0
),
L"Audio"
))
return
FALSE
;
return
TRUE
;
...
...
@@ -1822,7 +1815,6 @@ static const struct strmbase_filter_ops mpeg_splitter_ops =
HRESULT
mpeg_splitter_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
{
static
const
WCHAR
sink_name
[]
=
{
'I'
,
'n'
,
'p'
,
'u'
,
't'
,
0
};
struct
parser
*
object
;
if
(
!
parser_init_gstreamer
())
...
...
@@ -1838,7 +1830,7 @@ HRESULT mpeg_splitter_create(IUnknown *outer, IUnknown **out)
}
strmbase_filter_init
(
&
object
->
filter
,
outer
,
&
CLSID_MPEG1Splitter
,
&
mpeg_splitter_ops
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
sink_name
,
&
mpeg_splitter_sink_ops
,
NULL
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
L"Input"
,
&
mpeg_splitter_sink_ops
,
NULL
);
object
->
IAMStreamSelect_iface
.
lpVtbl
=
&
stream_select_vtbl
;
object
->
init_gst
=
mpeg_splitter_filter_init_gst
;
...
...
dlls/winegstreamer/main.c
View file @
1fb0b500
...
...
@@ -31,15 +31,6 @@ LONG object_locks;
WINE_DEFAULT_DEBUG_CHANNEL
(
gstreamer
);
static
const
WCHAR
wGstreamer_Splitter
[]
=
{
'G'
,
'S'
,
't'
,
'r'
,
'e'
,
'a'
,
'm'
,
'e'
,
'r'
,
' '
,
's'
,
'p'
,
'l'
,
'i'
,
't'
,
't'
,
'e'
,
'r'
,
' '
,
'f'
,
'i'
,
'l'
,
't'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
wave_parserW
[]
=
{
'W'
,
'a'
,
'v'
,
'e'
,
' '
,
'P'
,
'a'
,
'r'
,
's'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
avi_splitterW
[]
=
{
'A'
,
'V'
,
'I'
,
' '
,
'S'
,
'p'
,
'l'
,
'i'
,
't'
,
't'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
mpeg_splitterW
[]
=
{
'M'
,
'P'
,
'E'
,
'G'
,
'-'
,
'I'
,
' '
,
'S'
,
't'
,
'r'
,
'e'
,
'a'
,
'm'
,
' '
,
'S'
,
'p'
,
'l'
,
'i'
,
't'
,
't'
,
'e'
,
'r'
,
0
};
const
struct
unix_funcs
*
unix_funcs
=
NULL
;
BOOL
WINAPI
DllMain
(
HINSTANCE
instance
,
DWORD
reason
,
void
*
reserved
)
...
...
@@ -336,11 +327,12 @@ HRESULT WINAPI DllRegisterServer(void)
&
IID_IFilterMapper2
,
(
void
**
)
&
mapper
)))
return
hr
;
IFilterMapper2_RegisterFilter
(
mapper
,
&
CLSID_AviSplitter
,
avi_splitterW
,
NULL
,
NULL
,
NULL
,
&
reg_avi_splitter
);
IFilterMapper2_RegisterFilter
(
mapper
,
&
CLSID_AviSplitter
,
L"AVI Splitter"
,
NULL
,
NULL
,
NULL
,
&
reg_avi_splitter
);
IFilterMapper2_RegisterFilter
(
mapper
,
&
CLSID_decodebin_parser
,
wGstreamer_Splitter
,
NULL
,
NULL
,
NULL
,
&
reg_decodebin_parser
);
IFilterMapper2_RegisterFilter
(
mapper
,
&
CLSID_MPEG1Splitter
,
mpeg_splitterW
,
NULL
,
NULL
,
NULL
,
&
reg_mpeg_splitter
);
IFilterMapper2_RegisterFilter
(
mapper
,
&
CLSID_WAVEParser
,
wave_parserW
,
NULL
,
NULL
,
NULL
,
&
reg_wave_parser
);
L"GStreamer splitter filter"
,
NULL
,
NULL
,
NULL
,
&
reg_decodebin_parser
);
IFilterMapper2_RegisterFilter
(
mapper
,
&
CLSID_MPEG1Splitter
,
L"MPEG-I Stream Splitter"
,
NULL
,
NULL
,
NULL
,
&
reg_mpeg_splitter
);
IFilterMapper2_RegisterFilter
(
mapper
,
&
CLSID_WAVEParser
,
L"Wave Parser"
,
NULL
,
NULL
,
NULL
,
&
reg_wave_parser
);
IFilterMapper2_Release
(
mapper
);
...
...
dlls/winegstreamer/mfplat.c
View file @
1fb0b500
...
...
@@ -446,7 +446,7 @@ HRESULT mfplat_get_class_object(REFCLSID rclsid, REFIID riid, void **obj)
return
CLASS_E_CLASSNOTAVAILABLE
;
}
static
WCHAR
audio_converterW
[]
=
{
'A'
,
'u'
,
'd'
,
'i'
,
'o'
,
' '
,
'C'
,
'o'
,
'n'
,
'v'
,
'e'
,
'r'
,
't'
,
'e'
,
'r'
,
0
}
;
static
WCHAR
audio_converterW
[]
=
L"Audio Converter"
;
static
const
GUID
*
audio_converter_supported_types
[]
=
{
&
MFAudioFormat_PCM
,
...
...
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