matroxsrc: reverse order of calls to Mil*Free
This commit is contained in:
parent
376fbb5fd2
commit
0aa17031c3
@ -183,9 +183,9 @@ gst_matroxsrc_reset (GstMatroxSrc * src)
|
|||||||
src->MilGrabBufferList = NULL;
|
src->MilGrabBufferList = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src->MilApplication) {
|
if (src->MilDigitizer) {
|
||||||
MappFree (src->MilApplication);
|
MdigFree (src->MilDigitizer);
|
||||||
src->MilApplication = M_NULL;
|
src->MilDigitizer = M_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src->MilSystem) {
|
if (src->MilSystem) {
|
||||||
@ -193,9 +193,9 @@ gst_matroxsrc_reset (GstMatroxSrc * src)
|
|||||||
src->MilSystem = M_NULL;
|
src->MilSystem = M_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (src->MilDigitizer) {
|
if (src->MilApplication) {
|
||||||
MdigFree (src->MilDigitizer);
|
MappFree (src->MilApplication);
|
||||||
src->MilDigitizer = M_NULL;
|
src->MilApplication = M_NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -377,7 +377,7 @@ gst_matroxsrc_start (GstBaseSrc * bsrc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* create Digitizer */
|
/* create Digitizer */
|
||||||
MdigAlloc (src->MilSystem, M_DEFAULT, src->format, M_DEFAULT,
|
ret = MdigAlloc (src->MilSystem, M_DEFAULT, src->format, M_DEFAULT,
|
||||||
&src->MilDigitizer);
|
&src->MilDigitizer);
|
||||||
if (ret == M_NULL) {
|
if (ret == M_NULL) {
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user