Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e748d379
Kaydet (Commit)
e748d379
authored
Eyl 16, 2010
tarafından
Caolán McNamara
Kaydeden (comit)
Radek Doulik
Eyl 16, 2010
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avmedia-source-gstreamer-*.diff: gstreamer
- Loop the A/V when the loop flag is set; from Caolan.
üst
2eea82e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
gstplayer.cxx
avmedia/source/gstreamer/gstplayer.cxx
+13
-2
gstplayer.hxx
avmedia/source/gstreamer/gstplayer.hxx
+1
-0
No files found.
avmedia/source/gstreamer/gstplayer.cxx
Dosyayı görüntüle @
e748d379
...
...
@@ -59,6 +59,7 @@ Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
mpPlaybin
(
NULL
),
mbFakeVideo
(
sal_False
),
mnUnmutedVolume
(
0
),
mbPlayPending
(
false
),
mbMuted
(
false
),
mbLooping
(
false
),
mbInitialized
(
false
),
...
...
@@ -132,6 +133,9 @@ void Player::processMessage( GstMessage *message )
case
GST_MESSAGE_EOS
:
//DBG( "EOS, reset state to NULL" );
gst_element_set_state
(
mpPlaybin
,
GST_STATE_READY
);
mbPlayPending
=
false
;
if
(
mbLooping
)
start
();
break
;
case
GST_MESSAGE_STATE_CHANGED
:
if
(
message
->
src
==
GST_OBJECT
(
mpPlaybin
)
)
{
...
...
@@ -143,6 +147,9 @@ void Player::processMessage( GstMessage *message )
pendingstate
==
GST_STATE_VOID_PENDING
&&
mpXOverlay
)
gst_x_overlay_expose
(
mpXOverlay
);
if
(
mbPlayPending
)
mbPlayPending
=
((
newstate
==
GST_STATE_READY
)
||
(
newstate
==
GST_STATE_PAUSED
));
}
default
:
break
;
...
...
@@ -242,6 +249,7 @@ void Player::preparePlaybin( const ::rtl::OUString& rURL, bool bFakeVideo )
if
(
mpPlaybin
!=
NULL
)
{
gst_element_set_state
(
mpPlaybin
,
GST_STATE_NULL
);
mbPlayPending
=
false
;
g_object_unref
(
mpPlaybin
);
}
...
...
@@ -273,6 +281,7 @@ bool Player::create( const ::rtl::OUString& rURL )
preparePlaybin
(
rURL
,
true
);
gst_element_set_state
(
mpPlaybin
,
GST_STATE_PAUSED
);
mbPlayPending
=
false
;
bRet
=
true
;
}
...
...
@@ -297,6 +306,7 @@ void SAL_CALL Player::start( )
if
(
mbInitialized
&&
NULL
!=
mpPlaybin
)
{
gst_element_set_state
(
mpPlaybin
,
GST_STATE_PLAYING
);
mbPlayPending
=
true
;
}
}
...
...
@@ -309,6 +319,7 @@ void SAL_CALL Player::stop( )
if
(
mpPlaybin
)
gst_element_set_state
(
mpPlaybin
,
GST_STATE_PAUSED
);
mbPlayPending
=
false
;
DBG
(
"stop %p"
,
mpPlaybin
);
}
...
...
@@ -317,10 +328,10 @@ void SAL_CALL Player::stop( )
sal_Bool
SAL_CALL
Player
::
isPlaying
()
throw
(
uno
::
RuntimeException
)
{
bool
bRet
=
false
;
bool
bRet
=
mbPlayPending
;
// return whether the pipeline is in PLAYING STATE or not
if
(
mbInitialized
&&
mpPlaybin
)
if
(
!
mbPlayPending
&&
mbInitialized
&&
mpPlaybin
)
{
bRet
=
GST_STATE_PLAYING
==
GST_STATE
(
mpPlaybin
);
}
...
...
avmedia/source/gstreamer/gstplayer.hxx
Dosyayı görüntüle @
e748d379
...
...
@@ -93,6 +93,7 @@ private:
sal_Bool
mbFakeVideo
;
gdouble
mnUnmutedVolume
;
sal_Bool
mbPlayPending
;
sal_Bool
mbMuted
;
sal_Bool
mbLooping
;
sal_Bool
mbInitialized
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment