diff options
author | rogerdpack <rogerpack2005@gmail.com> | 2015-01-23 06:49:37 -0700 |
---|---|---|
committer | rogerdpack <rogerpack2005@gmail.com> | 2015-01-23 06:49:37 -0700 |
commit | 5d72cf0f64162aa130b4720f71e9249a6a34f08a (patch) | |
tree | 78aa28f3b959c1c8ea5ad1295e6c526b199259f6 /libavdevice/dshow_crossbar.c | |
parent | ec81ad21c1f8124dcde08c1e64656331d4c3d9e6 (diff) | |
download | ffmpeg-5d72cf0f64162aa130b4720f71e9249a6a34f08a.tar.gz |
dshow: add options for allowing filter popup configuration dialogs to be presented to the user
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Diffstat (limited to 'libavdevice/dshow_crossbar.c')
-rw-r--r-- | libavdevice/dshow_crossbar.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavdevice/dshow_crossbar.c b/libavdevice/dshow_crossbar.c index c4d1630533..1260428d2d 100644 --- a/libavdevice/dshow_crossbar.c +++ b/libavdevice/dshow_crossbar.c @@ -139,6 +139,7 @@ HRESULT dshow_try_setup_crossbar_options(ICaptureGraphBuilder2 *graph_builder2, IBaseFilter *device_filter, enum dshowDeviceType devtype, AVFormatContext *avctx) { + struct dshow_ctx *ctx = avctx->priv_data; IAMCrossbar *cross_bar = NULL; IBaseFilter *cross_bar_filter = NULL; HRESULT hr; @@ -151,6 +152,12 @@ dshow_try_setup_crossbar_options(ICaptureGraphBuilder2 *graph_builder2, goto end; } + if (ctx->show_crossbar_connection_dialog) { + hr = IAMCrossbar_QueryInterface(cross_bar, &IID_IBaseFilter, (void **) &cross_bar_filter); + if (hr != S_OK) + goto end; + dshow_show_filter_properties(cross_bar_filter, avctx); + } hr = setup_crossbar_options(cross_bar, devtype, avctx); if (hr != S_OK) goto end; |