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
This commit is contained in:
Luca Ognibene 2005-05-14 13:19:31 +00:00
parent eea570791c
commit 724361981f
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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> 2005-05-13 Luca Ognibene <luogni@tin.it>
* ext/ffmpeg/gstffmpeg.c (plugin_init): * ext/ffmpeg/gstffmpeg.c (plugin_init):

View file

@ -397,7 +397,8 @@ gst_ffmpegscale_change_state (GstElement * element)
switch (GST_STATE_TRANSITION (element)) { switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_READY_TO_NULL: case GST_STATE_READY_TO_NULL:
img_resample_close (scale->res); if (scale->res != NULL)
img_resample_close (scale->res);
break; break;
} }