gstffmpegenc: Don't change properties once opened. Fixes #570815

Based on a patch by Tristan Matthews <le businessman at gmail dot com>
This commit is contained in:
Edward Hervey 2009-04-21 18:38:03 +02:00
parent ec5ad411a5
commit f07223fd24

View file

@ -912,6 +912,12 @@ gst_ffmpegenc_set_property (GObject * object,
/* Get a pointer of the right type. */
ffmpegenc = (GstFFMpegEnc *) (object);
if (ffmpegenc->opened) {
GST_WARNING_OBJECT (ffmpegenc,
"Can't change properties once decoder is setup !");
return;
}
/* Check the argument id to see which argument we're setting. */
switch (prop_id) {
case ARG_BIT_RATE: