[vlc-commits] sout: sdi: move the chain output test
Steve Lhomme
git at videolan.org
Fri Nov 15 13:24:15 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Nov 7 14:53:34 2019 +0100| [a131064c781d9256e46d9945c2fcc5977335722c] | committer: Steve Lhomme
sout: sdi: move the chain output test
The chain can only have a different output than requestedoutput if a converter
was appended after the filter_chain_Reset() call.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a131064c781d9256e46d9945c2fcc5977335722c
---
modules/stream_out/sdi/SDIStream.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/stream_out/sdi/SDIStream.cpp b/modules/stream_out/sdi/SDIStream.cpp
index 344eb83211..2798b51061 100644
--- a/modules/stream_out/sdi/SDIStream.cpp
+++ b/modules/stream_out/sdi/SDIStream.cpp
@@ -522,13 +522,13 @@ filter_chain_t * VideoDecodedStream::VideoFilterCreate(const es_format_t *p_srcf
filter_chain_Delete(p_chain);
return NULL;
}
- }
- const es_format_t *p_fmt_out = filter_chain_GetFmtOut(p_chain);
- if(!es_format_IsSimilar(&requestedoutput, p_fmt_out))
- {
- filter_chain_Delete(p_chain);
- return NULL;
+ const es_format_t *p_fmt_out = filter_chain_GetFmtOut(p_chain);
+ if(!es_format_IsSimilar(&requestedoutput, p_fmt_out))
+ {
+ filter_chain_Delete(p_chain);
+ return NULL;
+ }
}
return p_chain;
More information about the vlc-commits
mailing list