summaryrefslogtreecommitdiff
path: root/lib/vorbisenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vorbisenc.c')
-rw-r--r--lib/vorbisenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vorbisenc.c b/lib/vorbisenc.c
index 4a4607cb..4fc7b62f 100644
--- a/lib/vorbisenc.c
+++ b/lib/vorbisenc.c
@@ -1210,7 +1210,7 @@ int vorbis_encode_ctl(vorbis_info *vi,int number,void *arg){
hi->req,
hi->managed,
&new_base);
- if(!hi->setup)return OV_EIMPL;
+ if(!new_template)return OV_EIMPL;
hi->setup=new_template;
hi->base_setting=new_base;
vorbis_encode_setup_setting(vi,vi->channels,vi->rate);