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
eb21b682
Kaydet (Commit)
eb21b682
authored
Agu 15, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: rhbz#1130264 plausible fix for reported crash
Change-Id: I4ccdf19bfc7986881f7022109f22f47a0f493591
üst
2035b719
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
gstplayer.cxx
avmedia/source/gstreamer/gstplayer.cxx
+16
-4
gstplayer.hxx
avmedia/source/gstreamer/gstplayer.hxx
+3
-0
No files found.
avmedia/source/gstreamer/gstplayer.cxx
Dosyayı görüntüle @
eb21b682
...
@@ -74,7 +74,9 @@ Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
...
@@ -74,7 +74,9 @@ Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) :
mpXOverlay
(
NULL
),
mpXOverlay
(
NULL
),
mnDuration
(
0
),
mnDuration
(
0
),
mnWidth
(
0
),
mnWidth
(
0
),
mnHeight
(
0
)
mnHeight
(
0
),
mnWatchID
(
0
),
mbWatchID
(
false
)
{
{
// Initialize GStreamer library
// Initialize GStreamer library
int
argc
=
1
;
int
argc
=
1
;
...
@@ -127,11 +129,15 @@ void SAL_CALL Player::disposing()
...
@@ -127,11 +129,15 @@ void SAL_CALL Player::disposing()
g_object_unref
(
G_OBJECT
(
mpXOverlay
)
);
g_object_unref
(
G_OBJECT
(
mpXOverlay
)
);
mpXOverlay
=
NULL
;
mpXOverlay
=
NULL
;
}
}
}
if
(
mbWatchID
)
{
g_source_remove
(
mnWatchID
);
mbWatchID
=
false
;
}
}
}
}
static
gboolean
pipeline_bus_callback
(
GstBus
*
,
GstMessage
*
message
,
gpointer
data
)
static
gboolean
pipeline_bus_callback
(
GstBus
*
,
GstMessage
*
message
,
gpointer
data
)
{
{
Player
*
pPlayer
=
static_cast
<
Player
*>
(
data
);
Player
*
pPlayer
=
static_cast
<
Player
*>
(
data
);
...
@@ -357,7 +363,13 @@ void Player::preparePlaybin( const OUString& rURL, GstElement *pSink )
...
@@ -357,7 +363,13 @@ void Player::preparePlaybin( const OUString& rURL, GstElement *pSink )
g_object_set
(
G_OBJECT
(
mpPlaybin
),
"uri"
,
ascURL
.
getStr
()
,
NULL
);
g_object_set
(
G_OBJECT
(
mpPlaybin
),
"uri"
,
ascURL
.
getStr
()
,
NULL
);
pBus
=
gst_element_get_bus
(
mpPlaybin
);
pBus
=
gst_element_get_bus
(
mpPlaybin
);
gst_bus_add_watch
(
pBus
,
pipeline_bus_callback
,
this
);
if
(
mbWatchID
)
{
g_source_remove
(
mnWatchID
);
mbWatchID
=
false
;
}
mnWatchID
=
gst_bus_add_watch
(
pBus
,
pipeline_bus_callback
,
this
);
mbWatchID
=
true
;
DBG
(
"%p set sync handler"
,
this
);
DBG
(
"%p set sync handler"
,
this
);
#ifdef AVMEDIA_GST_0_10
#ifdef AVMEDIA_GST_0_10
gst_bus_set_sync_handler
(
pBus
,
pipeline_bus_sync_handler
,
this
);
gst_bus_set_sync_handler
(
pBus
,
pipeline_bus_sync_handler
,
this
);
...
...
avmedia/source/gstreamer/gstplayer.hxx
Dosyayı görüntüle @
eb21b682
...
@@ -97,6 +97,9 @@ protected:
...
@@ -97,6 +97,9 @@ protected:
int
mnWidth
;
int
mnWidth
;
int
mnHeight
;
int
mnHeight
;
guint
mnWatchID
;
bool
mbWatchID
;
osl
::
Condition
maSizeCondition
;
osl
::
Condition
maSizeCondition
;
};
};
...
...
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