gstframegrabber.cxx (cdf0e10c) gstframegrabber.cxx (e3251387)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 31 unchanged lines hidden (view full) ---

40
41const gulong GRAB_TIMEOUT = 10000000;
42
43// ----------------
44// - FrameGrabber -
45// ----------------
46
47FrameGrabber::FrameGrabber( GString* pURI ) :
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 31 unchanged lines hidden (view full) ---

40
41const gulong GRAB_TIMEOUT = 10000000;
42
43// ----------------
44// - FrameGrabber -
45// ----------------
46
47FrameGrabber::FrameGrabber( GString* pURI ) :
48 FrameGrabber_BASE(pURI),
48 mpFrameMutex( g_mutex_new() ),
49 mpFrameCond( g_cond_new() ),
50 mpLastPixbuf( NULL ),
51 mbIsInGrabMode( false )
52{
49 mpFrameMutex( g_mutex_new() ),
50 mpFrameCond( g_cond_new() ),
51 mpLastPixbuf( NULL ),
52 mbIsInGrabMode( false )
53{
53 if( pURI )
54 {
55 OSL_TRACE( ">>> --------------------------------" );
56 OSL_TRACE( ">>> Creating Player object with URL: %s", pURI->str );
57
58 mpThread = g_thread_create( Player::implThreadFunc, this, true, NULL );
59 }
60}
61
62// ------------------------------------------------------------------------------
63
64FrameGrabber::~FrameGrabber()
65{
66 if( g_atomic_pointer_get( &mpPlayer ) )
67 {

--- 249 unchanged lines hidden ---
54}
55
56// ------------------------------------------------------------------------------
57
58FrameGrabber::~FrameGrabber()
59{
60 if( g_atomic_pointer_get( &mpPlayer ) )
61 {

--- 249 unchanged lines hidden ---