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
329e0210
Commit
329e0210
authored
Apr 22, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/filewriter: Implement IFileSinkFilter::SetFileName().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8dd83713
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
filewriter.c
dlls/qcap/filewriter.c
+16
-2
No files found.
dlls/qcap/filewriter.c
View file @
329e0210
...
...
@@ -22,6 +22,7 @@
#include "dshow.h"
#include "qcap_main.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
qcap
);
...
...
@@ -31,6 +32,8 @@ struct file_writer
IFileSinkFilter
IFileSinkFilter_iface
;
struct
strmbase_sink
sink
;
WCHAR
*
filename
;
};
static
inline
struct
file_writer
*
impl_from_strmbase_pin
(
struct
strmbase_pin
*
iface
)
...
...
@@ -87,6 +90,7 @@ static void file_writer_destroy(struct strmbase_filter *iface)
{
struct
file_writer
*
filter
=
impl_from_strmbase_filter
(
iface
);
heap_free
(
filter
->
filename
);
strmbase_sink_cleanup
(
&
filter
->
sink
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
heap_free
(
filter
);
...
...
@@ -126,11 +130,21 @@ static HRESULT WINAPI filesinkfilter_SetFileName(IFileSinkFilter *iface,
LPCOLESTR
filename
,
const
AM_MEDIA_TYPE
*
mt
)
{
struct
file_writer
*
filter
=
impl_from_IFileSinkFilter
(
iface
);
WCHAR
*
new_filename
;
FIXM
E
(
"filter %p, filename %s, mt %p, stub!
\n
"
,
filter
,
debugstr_w
(
filename
),
mt
);
TRAC
E
(
"filter %p, filename %s, mt %p, stub!
\n
"
,
filter
,
debugstr_w
(
filename
),
mt
);
strmbase_dump_media_type
(
mt
);
return
E_NOTIMPL
;
if
(
mt
)
FIXME
(
"Ignoring media type %p.
\n
"
,
mt
);
if
(
!
(
new_filename
=
heap_alloc
((
strlenW
(
filename
)
+
1
)
*
sizeof
(
WCHAR
))))
return
E_OUTOFMEMORY
;
strcpyW
(
new_filename
,
filename
);
heap_free
(
filter
->
filename
);
filter
->
filename
=
new_filename
;
return
S_OK
;
}
static
HRESULT
WINAPI
filesinkfilter_GetCurFile
(
IFileSinkFilter
*
iface
,
...
...
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