summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video.c b/src/video.c
index 86ac687..9e299fa 100644
--- a/src/video.c
+++ b/src/video.c
@@ -1065,14 +1065,18 @@ int video_decoder_set(struct video *v, struct vidcodec *vc, int pt_rx,
/* handle vidcodecs without a decoder */
if (!vc->decupdh) {
+ struct vidcodec *vcd;
+
info("video: vidcodec '%s' has no decoder\n", vc->name);
- vc = (struct vidcodec *)vidcodec_find_decoder(vc->name);
- if (!vc) {
+ vcd = (struct vidcodec *)vidcodec_find_decoder(vc->name);
+ if (!vcd) {
warning("video: could not find decoder (%s)\n",
vc->name);
return ENOENT;
}
+
+ vc = vcd;
}
vrx = &v->vrx;