summaryrefslogtreecommitdiff
path: root/ext/ffmpeg/gstffmpegenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffmpeg/gstffmpegenc.c')
-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: