- 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.src3.link(self.src3dec):
+ print("Failed to link src3 to src3dec")
+ if not self.src3scale.link(self.src3scalecaps):
+ print("Failed to link src3scale to src3scalecaps")
+ if not self.src3scalecaps.link(self.src3crop):
+ print("Failed to link src3scalecaps to src3crop")
+ if not self.src3crop.link(self.src3cropcaps):
+ print("Failed to link src3crop to src3cropcaps")
+ if not self.src3cropcaps.link(self.videomix):
+ print("Failed to link src3cropcaps to videomix")