Package org.gstreamer.event

Examples of org.gstreamer.event.LatencyEvent


    }
    @Test public void createFlushStopEvent() throws Exception {
        new FlushStopEvent();
    }
    @Test public void createLatencyEvent() throws Exception {
        new LatencyEvent(ClockTime.ZERO);
    }
View Full Code Here


        assertNotNull("gst_event_new_latency returned null", ev);
        assertTrue("gst_event_new_latency returned a non-NEWSEGMENT event", ev instanceof NewSegmentEvent);
    }
    @Test public void getLatency() {
        final ClockTime MAGIC = ClockTime.valueOf(0xdeadbeef, TimeUnit.NANOSECONDS);
        LatencyEvent ev = new LatencyEvent(MAGIC);
        assertEquals("Incorrect latency returned", MAGIC, ev.getLatency());
    }
View Full Code Here

        assertFalse("Event ref collected before TagList is unreferenced", waitGC(evRef));
        tl = null;
        assertTrue("Event ref not collected after TagList is unreferenced", waitGC(evRef));
    }
    @Test public void Event_testGC() throws Exception {
        Event ev = new LatencyEvent(ClockTime.NONE);
        @SuppressWarnings("unused")
        Structure s = ev.getStructure();
        WeakReference<Event> evRef = new WeakReference<Event>(ev);
        ev = null;
        assertFalse("Event ref collected before Structure is unreferenced", waitGC(evRef));
        s = null;
        assertTrue("Event ref not collected after Structure is unreferenced", waitGC(evRef));
View Full Code Here

TOP

Related Classes of org.gstreamer.event.LatencyEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.