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
e4767ea6
Commit
e4767ea6
authored
Oct 07, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore: Move the sync reader implementation to winegstreamer.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
009c1d66
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
23 deletions
+33
-23
Makefile.in
dlls/winegstreamer/Makefile.in
+3
-1
winegstreamer.spec
dlls/winegstreamer/winegstreamer.spec
+1
-0
wm_syncreader.c
dlls/winegstreamer/wm_syncreader.c
+12
-21
Makefile.in
dlls/wmvcore/Makefile.in
+1
-1
wmvcore_main.c
dlls/wmvcore/wmvcore_main.c
+16
-0
No files found.
dlls/winegstreamer/Makefile.in
View file @
e4767ea6
MODULE
=
winegstreamer.dll
MODULE
=
winegstreamer.dll
UNIXLIB
=
winegstreamer.so
UNIXLIB
=
winegstreamer.so
IMPORTLIB
=
winegstreamer
IMPORTS
=
strmbase strmiids uuid ole32 mfuuid
IMPORTS
=
strmbase strmiids uuid ole32 mfuuid
DELAYIMPORTS
=
mfplat
DELAYIMPORTS
=
mfplat
EXTRAINCL
=
$(GSTREAMER_CFLAGS)
EXTRAINCL
=
$(GSTREAMER_CFLAGS)
...
@@ -11,7 +12,8 @@ C_SRCS = \
...
@@ -11,7 +12,8 @@ C_SRCS = \
media_source.c
\
media_source.c
\
mfplat.c
\
mfplat.c
\
quartz_parser.c
\
quartz_parser.c
\
wg_parser.c
wg_parser.c
\
wm_syncreader.c
IDL_SRCS
=
\
IDL_SRCS
=
\
winegstreamer_classes.idl
winegstreamer_classes.idl
...
...
dlls/winegstreamer/winegstreamer.spec
View file @
e4767ea6
...
@@ -2,3 +2,4 @@
...
@@ -2,3 +2,4 @@
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stdcall -private DllUnregisterServer()
@ stdcall winegstreamer_create_wm_sync_reader(ptr)
dlls/w
mvcore/
syncreader.c
→
dlls/w
inegstreamer/wm_
syncreader.c
View file @
e4767ea6
...
@@ -16,11 +16,9 @@
...
@@ -16,11 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "
wmvcor
e.h"
#include "
gst_privat
e.h"
#include "initguid.h"
#include "wmsdk.h"
#include "wmsdk.h"
#include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wmvcore
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wmvcore
);
...
@@ -85,7 +83,7 @@ static ULONG WINAPI WMSyncReader_Release(IWMSyncReader2 *iface)
...
@@ -85,7 +83,7 @@ static ULONG WINAPI WMSyncReader_Release(IWMSyncReader2 *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
if
(
!
ref
)
heap_
free
(
This
);
free
(
This
);
return
ref
;
return
ref
;
}
}
...
@@ -605,27 +603,20 @@ static const IWMProfile3Vtbl WMProfile3Vtbl =
...
@@ -605,27 +603,20 @@ static const IWMProfile3Vtbl WMProfile3Vtbl =
WMProfile3_GetExpectedPacketCount
WMProfile3_GetExpectedPacketCount
};
};
HRESULT
WINAPI
WMCreateSyncReader
(
IUnknown
*
pcert
,
DWORD
rights
,
IWMSyncReader
**
sync
reader
)
HRESULT
WINAPI
winegstreamer_create_wm_sync_reader
(
IWMSyncReader
**
reader
)
{
{
WMSyncReader
*
sync
;
WMSyncReader
*
object
;
TRACE
(
"(%p, %x, %p)
\n
"
,
pcert
,
rights
,
syncreader
);
sync
=
heap_alloc
(
sizeof
(
*
sync
)
);
TRACE
(
"reader %p.
\n
"
,
reader
);
if
(
!
sync
)
if
(
!
(
object
=
calloc
(
1
,
sizeof
(
*
object
)))
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
sync
->
IWMProfile3_iface
.
lpVtbl
=
&
WMProfile3Vtbl
;
object
->
IWMProfile3_iface
.
lpVtbl
=
&
WMProfile3Vtbl
;
sync
->
IWMSyncReader2_iface
.
lpVtbl
=
&
WMSyncReader2Vtbl
;
object
->
IWMSyncReader2_iface
.
lpVtbl
=
&
WMSyncReader2Vtbl
;
sync
->
ref
=
1
;
object
->
ref
=
1
;
*
syncreader
=
(
IWMSyncReader
*
)
&
sync
->
IWMSyncReader2_iface
;
TRACE
(
"Created sync reader %p.
\n
"
,
object
);
*
reader
=
(
IWMSyncReader
*
)
&
object
->
IWMSyncReader2_iface
;
return
S_OK
;
return
S_OK
;
}
}
HRESULT
WINAPI
WMCreateSyncReaderPriv
(
IWMSyncReader
**
syncreader
)
{
return
WMCreateSyncReader
(
NULL
,
0
,
syncreader
);
}
dlls/wmvcore/Makefile.in
View file @
e4767ea6
MODULE
=
wmvcore.dll
MODULE
=
wmvcore.dll
IMPORTLIB
=
wmvcore
IMPORTLIB
=
wmvcore
IMPORTS
=
kernel32
IMPORTS
=
kernel32
DELAYIMPORTS
=
winegstreamer
EXTRADLLFLAGS
=
-Wb
,--prefer-native
EXTRADLLFLAGS
=
-Wb
,--prefer-native
C_SRCS
=
\
C_SRCS
=
\
reader.c
\
reader.c
\
syncreader.c
\
wmvcore_main.c
\
wmvcore_main.c
\
writer.c
writer.c
...
...
dlls/wmvcore/wmvcore_main.c
View file @
e4767ea6
...
@@ -25,6 +25,22 @@
...
@@ -25,6 +25,22 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wmvcore
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wmvcore
);
HRESULT
WINAPI
winegstreamer_create_wm_sync_reader
(
IWMSyncReader
**
reader
);
HRESULT
WINAPI
WMCreateSyncReader
(
IUnknown
*
reserved
,
DWORD
rights
,
IWMSyncReader
**
reader
)
{
TRACE
(
"reserved %p, rights %#x, reader %p.
\n
"
,
reserved
,
rights
,
reader
);
return
winegstreamer_create_wm_sync_reader
(
reader
);
}
HRESULT
WINAPI
WMCreateSyncReaderPriv
(
IWMSyncReader
**
reader
)
{
TRACE
(
"reader %p.
\n
"
,
reader
);
return
winegstreamer_create_wm_sync_reader
(
reader
);
}
HRESULT
WINAPI
WMCheckURLExtension
(
const
WCHAR
*
url
)
HRESULT
WINAPI
WMCheckURLExtension
(
const
WCHAR
*
url
)
{
{
FIXME
(
"(%s): stub
\n
"
,
wine_dbgstr_w
(
url
));
FIXME
(
"(%s): stub
\n
"
,
wine_dbgstr_w
(
url
));
...
...
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