summaryrefslogtreecommitdiffstats
path: root/ext/divx
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-06-01 13:20:37 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-06-01 13:20:37 +0000
commit401ae2bdeecf7ecf8fa9a0b99274c038c6a9afeb (patch)
tree54023ebd602aa24c62de341d4c1a89f07266674f /ext/divx
parent474048118399c72b29605a92100edfa7284bca92 (diff)
downloadgst-plugins-bad-401ae2bdeecf7ecf8fa9a0b99274c038c6a9afeb.tar.gz
gst-plugins-bad-401ae2bdeecf7ecf8fa9a0b99274c038c6a9afeb.tar.bz2
gst-plugins-bad-401ae2bdeecf7ecf8fa9a0b99274c038c6a9afeb.zip
This fixes a segfault on exit
Original commit message from CVS: This fixes a segfault on exit
Diffstat (limited to 'ext/divx')
-rw-r--r--ext/divx/gstdivxenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/divx/gstdivxenc.c b/ext/divx/gstdivxenc.c
index e337a96f..bdc32786 100644
--- a/ext/divx/gstdivxenc.c
+++ b/ext/divx/gstdivxenc.c
@@ -240,7 +240,7 @@ gst_divxenc_init (GstDivxEnc *divxenc)
static gboolean
gst_divxenc_setup (GstDivxEnc *divxenc)
{
- void *handle;
+ void *handle = NULL;
SETTINGS output;
DivXBitmapInfoHeader input;
gdouble fps;
@@ -306,7 +306,7 @@ static void
gst_divxenc_unset (GstDivxEnc *divxenc)
{
if (divxenc->handle) {
- encore(divxenc, ENC_OPT_RELEASE, NULL, NULL);
+ encore(divxenc->handle, ENC_OPT_RELEASE, NULL, NULL);
divxenc->handle = NULL;
}
}