summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-21 18:38:03 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-21 18:38:03 +0200
commitf07223fd248ef22937afc7bef85fb89b3d5cdc24 (patch)
treec49ba49d08221eac87f6f1a3eb7f7cd65646a15e
parentec5ad411a5f99b4f85c882eb215ed349f4944b17 (diff)
gstffmpegenc: Don't change properties once opened. Fixes #570815
Based on a patch by Tristan Matthews <le businessman at gmail dot com>
-rw-r--r--ext/ffmpeg/gstffmpegenc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c
index 6ae33a3..95e110b 100644
--- a/ext/ffmpeg/gstffmpegenc.c
+++ b/ext/ffmpeg/gstffmpegenc.c
@@ -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: