summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2011-08-25 05:39:19 +0000
committerLiong Sauw Ming <ming@teluu.com>2011-08-25 05:39:19 +0000
commitddeb24066e2feafe9de7baef397d40b40c7fb537 (patch)
treed93f017a559097cebbd136ad178394bb2f97a1f3
parent7e07a630b16c4909e7472c9ec73908fcb2822c36 (diff)
Re #1349: Fixed a potential problem when stopping the video port. We should stop the clock first then stop the stream.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3723 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/src/pjmedia/vid_port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjmedia/src/pjmedia/vid_port.c b/pjmedia/src/pjmedia/vid_port.c
index a942352c..56694cd7 100644
--- a/pjmedia/src/pjmedia/vid_port.c
+++ b/pjmedia/src/pjmedia/vid_port.c
@@ -485,12 +485,12 @@ PJ_DEF(pj_status_t) pjmedia_vid_port_stop(pjmedia_vid_port *vp)
PJ_ASSERT_RETURN(vp, PJ_EINVAL);
- status = pjmedia_vid_dev_stream_stop(vp->strm);
-
if (vp->clock) {
status = pjmedia_clock_stop(vp->clock);
}
+ status = pjmedia_vid_dev_stream_stop(vp->strm);
+
return status;
}