mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
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:
parent
ec5ad411a5
commit
f07223fd24
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue