<div dir="ltr">Hello all.<br><div><br></div><div>I have next pipe:</div><div>appsrc->h264parse->h264pay->fakesink</div><div><br></div><div>Appsrc receives gst_samples, which has caps in it. Usually, it is h264 stream, but sometimes it happens that it can be h265 stream, so, in such a case, I need to re-configure pipe to:</div><div>appsrc->h265parse->h265pay->fakesink. </div><div><br></div><div>I've put:</div>  GstPad *pad = gst_element_get_static_pad (app_src, "src");<br>  gst_pad_set_event_function (pad, gst_my_filter_event);<div><br></div><div>And try to print events. As I understand, when appsrc produces different caps, it should pass CAPS event downstream. But it looks like that no event on this pad! Right after that I have an 'internal data stream error' which is logically true.</div><div><br></div><div>Is it any way to detect that appsrc caps are changed and re-configure the pipeline?</div><div><br></div><div>Thank you in advance,</div><div>Best regards,</div><div>Anton.</div></div>