<div dir="ltr">Hi all,<div><br></div><div>I have a pipeline which contains a splitmuxsink and an appsink serving jpeg frames.</div><div><br></div><div>In order to keep track of the video sequence, I have a sequence counter that is incremented when format-location-full callback occurs.</div><div><br></div><div>Separately, the appsink produces a "new-sample" callback.</div><div><br></div><div>I need to correlate the specific jpeg frame to the sequence, so I read the current sequence counter value with thread safety implemented. However, sometimes I am finding some of the Jpeg frames are referring to the earlier sequence, as if the "new-sample" callback for the next video occurs and then a short time later the "format-location-full" callback occurs.</div><div><br></div><div>This causes few of the frames to be associated with the earlier video not the current one.</div><div><br></div><div>Is there a pattern or method to correct this?<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Sincerely,</span><div><br></div><div>Dwight Kulkarni                </div><div><br></div></div></div></div></div></div></div></div></div>