Commit 72436198 authored by Luca Ognibene's avatar Luca Ognibene

ext/ffmpeg/gstffmpegscale.c (gst_ffmpegscale_change_state): Don't segfault if using passthrough

Original commit message from CVS:
* ext/ffmpeg/gstffmpegscale.c (gst_ffmpegscale_change_state):
Don't segfault if using passthrough
parent eea57079
2005-05-14 Luca Ognibene <luogni@tin.it>
* ext/ffmpeg/gstffmpegscale.c (gst_ffmpegscale_change_state):
Don't segfault if using passthrough
2005-05-13 Luca Ognibene <luogni@tin.it>
* ext/ffmpeg/gstffmpeg.c (plugin_init):
......
......@@ -397,7 +397,8 @@ gst_ffmpegscale_change_state (GstElement * element)
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_READY_TO_NULL:
img_resample_close (scale->res);
if (scale->res != NULL)
img_resample_close (scale->res);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment