- self.src1.link(self.src1caps)
- self.src1caps.link(self.src1jpegdec)
- self.src1jpegdec.link(self.src1videoconvert)
- self.src1videoconvert.link(self.videomix)
-
- self.src2.link(self.src2caps)
- self.src2caps.link(self.src2jpegdec)
- self.src2jpegdec.link(self.src2videoconvert)
- self.src2videoconvert.link(self.videomix)
-
- self.videomix.link(self.videosink)
+ if not self.src1.link(self.src1caps):
+ print("Failed to link src1 to src1caps")
+ if not self.src1caps.link(self.src1dec):
+ print("Failed to link src1caps to src1dec")
+ if not self.videomix.link(self.videosink):
+ print("Failed to link videomix to videosink")
+
+ if not self.src2.link(self.src2caps):
+ print("Failed to link src2 to src2caps")
+ if not self.src2caps.link(self.src2dec):
+ print("Failed to link src2caps to src2dec")
+
+ if not self.src3.link(self.src3caps):
+ print("Failed to link src3 to src3caps")
+ if not self.src3caps.link(self.src3dec):
+ print("Failed to link src3caps to src3dec")