mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
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:
parent
eea570791c
commit
724361981f
2 changed files with 7 additions and 1 deletions
|
@ -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):
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue