diff options
author | Riza Sulistyo <riza@teluu.com> | 2014-11-19 07:44:39 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2014-11-19 07:44:39 +0000 |
commit | d6698b48908d6047cc1d903eaa4f08192fc528f9 (patch) | |
tree | 441de36d2f091754f43b51c91777f10733548a9f /pjmedia | |
parent | 35384ec7e176fd4141e94f885463f3d2e29a01c6 (diff) |
Re #1782 (misc): Fixed crash when failing to create filter graph on dshow.
Thanks to Alexander Fatyanov for the report.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4962 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/src/pjmedia-videodev/dshow_dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-videodev/dshow_dev.c b/pjmedia/src/pjmedia-videodev/dshow_dev.c index 7b4dd3a0..fbc53c71 100644 --- a/pjmedia/src/pjmedia-videodev/dshow_dev.c +++ b/pjmedia/src/pjmedia-videodev/dshow_dev.c @@ -1068,7 +1068,8 @@ static pj_status_t dshow_stream_stop(pjmedia_vid_dev_stream *strm) for (i=0; !stream->rend_thread_exited && i<100; ++i) pj_thread_sleep(10); - IMediaFilter_Stop(stream->dgraph.media_filter); + if (stream->dgraph.media_filter) + IMediaFilter_Stop(stream->dgraph.media_filter); PJ_LOG(4, (THIS_FILE, "Stopping dshow video stream")); |