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
5e70f1cf
Commit
5e70f1cf
authored
Aug 22, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore: Move async reader from winegstreamer/wm_asyncreader.c.
parent
30c33c2f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
66 additions
and
29 deletions
+66
-29
Makefile.in
dlls/winegstreamer/Makefile.in
+0
-1
gst_private.h
dlls/winegstreamer/gst_private.h
+0
-2
winegstreamer.spec
dlls/winegstreamer/winegstreamer.spec
+0
-1
Makefile.in
dlls/wmvcore/Makefile.in
+1
-0
async_reader.c
dlls/wmvcore/async_reader.c
+29
-2
wmvcore_main.c
dlls/wmvcore/wmvcore_main.c
+8
-19
wmvcore_private.h
dlls/wmvcore/wmvcore_private.h
+27
-3
writer.c
dlls/wmvcore/writer.c
+1
-1
No files found.
dlls/winegstreamer/Makefile.in
View file @
5e70f1cf
...
@@ -22,7 +22,6 @@ C_SRCS = \
...
@@ -22,7 +22,6 @@ C_SRCS = \
wg_parser.c
\
wg_parser.c
\
wg_sample.c
\
wg_sample.c
\
wg_transform.c
\
wg_transform.c
\
wm_asyncreader.c
\
wm_reader.c
\
wm_reader.c
\
wma_decoder.c
\
wma_decoder.c
\
wmv_decoder.c
wmv_decoder.c
...
...
dlls/winegstreamer/gst_private.h
View file @
5e70f1cf
...
@@ -147,6 +147,4 @@ HRESULT aac_decoder_create(REFIID riid, void **ret);
...
@@ -147,6 +147,4 @@ HRESULT aac_decoder_create(REFIID riid, void **ret);
HRESULT
h264_decoder_create
(
REFIID
riid
,
void
**
ret
);
HRESULT
h264_decoder_create
(
REFIID
riid
,
void
**
ret
);
HRESULT
video_processor_create
(
REFIID
riid
,
void
**
ret
);
HRESULT
video_processor_create
(
REFIID
riid
,
void
**
ret
);
HRESULT
WINAPI
winegstreamer_create_wm_sync_reader
(
IUnknown
*
outer
,
void
**
out
);
#endif
/* __GST_PRIVATE_INCLUDED__ */
#endif
/* __GST_PRIVATE_INCLUDED__ */
dlls/winegstreamer/winegstreamer.spec
View file @
5e70f1cf
...
@@ -2,5 +2,4 @@
...
@@ -2,5 +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_async_reader(ptr)
@ stdcall winegstreamer_create_wm_sync_reader(ptr ptr)
@ stdcall winegstreamer_create_wm_sync_reader(ptr ptr)
dlls/wmvcore/Makefile.in
View file @
5e70f1cf
...
@@ -6,6 +6,7 @@ DELAYIMPORTS = winegstreamer
...
@@ -6,6 +6,7 @@ DELAYIMPORTS = winegstreamer
EXTRADLLFLAGS
=
-Wb
,--prefer-native
EXTRADLLFLAGS
=
-Wb
,--prefer-native
C_SRCS
=
\
C_SRCS
=
\
async_reader.c
\
wmvcore_main.c
\
wmvcore_main.c
\
writer.c
writer.c
...
...
dlls/w
inegstreamer/wm_async
reader.c
→
dlls/w
mvcore/async_
reader.c
View file @
5e70f1cf
...
@@ -16,8 +16,21 @@
...
@@ -16,8 +16,21 @@
* 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 "gst_private.h"
#include <stdarg.h>
#include <stddef.h>
#include <stdbool.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#define EXTERN_GUID DEFINE_GUID
#include "initguid.h"
#include "wmvcore_private.h"
#include "wmsdk.h"
#include "wine/debug.h"
#include "wine/list.h"
#include "wine/list.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wmvcore
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wmvcore
);
...
@@ -1881,7 +1894,7 @@ static const IReferenceClockVtbl ReferenceClockVtbl =
...
@@ -1881,7 +1894,7 @@ static const IReferenceClockVtbl ReferenceClockVtbl =
refclock_Unadvise
refclock_Unadvise
};
};
HRESULT
WINAPI
winegstreamer_create_wm_async_reader
(
IWMReader
**
reader
)
static
HRESULT
WINAPI
async_reader_create
(
IWMReader
**
reader
)
{
{
struct
async_reader
*
object
;
struct
async_reader
*
object
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -1927,3 +1940,17 @@ failed:
...
@@ -1927,3 +1940,17 @@ failed:
free
(
object
);
free
(
object
);
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
WMCreateReader
(
IUnknown
*
reserved
,
DWORD
rights
,
IWMReader
**
reader
)
{
TRACE
(
"reserved %p, rights %#lx, reader %p.
\n
"
,
reserved
,
rights
,
reader
);
return
async_reader_create
(
reader
);
}
HRESULT
WINAPI
WMCreateReaderPriv
(
IWMReader
**
reader
)
{
TRACE
(
"reader %p.
\n
"
,
reader
);
return
async_reader_create
(
reader
);
}
dlls/wmvcore/wmvcore_main.c
View file @
5e70f1cf
...
@@ -16,32 +16,21 @@
...
@@ -16,32 +16,21 @@
* 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 "wmvcore.h"
#include <stdarg.h>
#include <stddef.h>
#include "initguid.h"
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "wmvcore_private.h"
#include "wmsdk.h"
#include "wmsdk.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wmvcore
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wmvcore
);
HRESULT
WINAPI
winegstreamer_create_wm_async_reader
(
IWMReader
**
reader
);
HRESULT
WINAPI
winegstreamer_create_wm_sync_reader
(
IUnknown
*
outer
,
void
**
out
);
HRESULT
WINAPI
WMCreateReader
(
IUnknown
*
reserved
,
DWORD
rights
,
IWMReader
**
reader
)
{
TRACE
(
"reserved %p, rights %#lx, reader %p.
\n
"
,
reserved
,
rights
,
reader
);
return
winegstreamer_create_wm_async_reader
(
reader
);
}
HRESULT
WINAPI
WMCreateReaderPriv
(
IWMReader
**
reader
)
{
TRACE
(
"reader %p.
\n
"
,
reader
);
return
winegstreamer_create_wm_async_reader
(
reader
);
}
HRESULT
WINAPI
WMCreateSyncReader
(
IUnknown
*
reserved
,
DWORD
rights
,
IWMSyncReader
**
reader
)
HRESULT
WINAPI
WMCreateSyncReader
(
IUnknown
*
reserved
,
DWORD
rights
,
IWMSyncReader
**
reader
)
{
{
TRACE
(
"reserved %p, rights %#lx, reader %p.
\n
"
,
reserved
,
rights
,
reader
);
TRACE
(
"reserved %p, rights %#lx, reader %p.
\n
"
,
reserved
,
rights
,
reader
);
...
...
dlls/wmvcore/wmvcore.h
→
dlls/wmvcore/wmvcore
_private
.h
View file @
5e70f1cf
...
@@ -17,10 +17,34 @@
...
@@ -17,10 +17,34 @@
*/
*/
#include <stdarg.h>
#include <stdarg.h>
#include <stddef.h>
#define COBJMACROS
#define COBJMACROS
#define EXTERN_GUID DEFINE_GUID
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "objidl.h"
#include "wine/debug.h"
HRESULT
WINAPI
winegstreamer_create_wm_sync_reader
(
IUnknown
*
outer
,
void
**
out
);
static
inline
const
char
*
debugstr_time
(
LONGLONG
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
23
],
rev
[
23
];
while
(
abstime
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
abstime
%
10
);
abstime
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
while
(
rev
[
j
-
1
]
==
'0'
&&
rev
[
j
-
2
]
!=
'.'
)
--
j
;
rev
[
j
]
=
0
;
return
wine_dbg_sprintf
(
"%s"
,
rev
);
}
dlls/wmvcore/writer.c
View file @
5e70f1cf
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
* 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 "wmvcore.h"
#include "wmvcore
_private
.h"
#include "wmsdkidl.h"
#include "wmsdkidl.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
...
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