Skip to content

Commit 7a46c24

Browse files
authored
avoid deadlock by synchronizing on addEventProbe (#196)
1 parent abede99 commit 7a46c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/freedesktop/gstreamer/Pad.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public void addEventProbe(final EVENT_PROBE listener) {
391391
addEventProbe(listener, mask);
392392
}
393393

394-
void addEventProbe(final EVENT_PROBE listener, final int mask) {
394+
synchronized void addEventProbe(final EVENT_PROBE listener, final int mask) {
395395
final GstPadAPI.PadProbeCallback probe = new GstPadAPI.PadProbeCallback() {
396396
public PadProbeReturn callback(Pad pad, GstPadProbeInfo probeInfo, Pointer user_data) {
397397
// System.out.println("CALLBACK " + probeInfo.padProbeType);

0 commit comments

Comments
 (0)