mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 9173dcf026ee (bug 882567) because of mochitest-1 timeouts on Linux
Landed on a CLOSED TREE
This commit is contained in:
parent
1951841800
commit
bbc905d8d8
@ -26,7 +26,6 @@ GST_FUNC(LIBGSTREAMER, gst_buffer_copy_metadata)
|
||||
GST_FUNC(LIBGSTREAMER, gst_buffer_get_type)
|
||||
GST_FUNC(LIBGSTREAMER, gst_buffer_new)
|
||||
GST_FUNC(LIBGSTREAMER, gst_buffer_new_and_alloc)
|
||||
GST_FUNC(LIBGSTREAMER, gst_bus_set_sync_handler)
|
||||
GST_FUNC(LIBGSTREAMER, gst_bus_timed_pop_filtered)
|
||||
GST_FUNC(LIBGSTREAMER, gst_caps_append)
|
||||
GST_FUNC(LIBGSTREAMER, gst_caps_can_intersect)
|
||||
@ -55,7 +54,6 @@ GST_FUNC(LIBGSTREAMER, gst_init)
|
||||
GST_FUNC(LIBGSTREAMER, gst_init_check)
|
||||
GST_FUNC(LIBGSTREAMER, gst_iterator_next)
|
||||
GST_FUNC(LIBGSTREAMER, gst_message_parse_error)
|
||||
GST_FUNC(LIBGSTREAMER, gst_message_type_get_name)
|
||||
GST_FUNC(LIBGSTREAMER, gst_mini_object_get_type)
|
||||
GST_FUNC(LIBGSTREAMER, gst_mini_object_new)
|
||||
GST_FUNC(LIBGSTREAMER, gst_mini_object_ref)
|
||||
|
@ -178,22 +178,6 @@ nsresult GStreamerReader::Init(MediaDecoderReader* aCloneDonor)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
GstBusSyncReply
|
||||
GStreamerReader::ErrorCb(GstBus *aBus, GstMessage *aMessage, gpointer aUserData)
|
||||
{
|
||||
return static_cast<GStreamerReader*>(aUserData)->Error(aBus, aMessage);
|
||||
}
|
||||
|
||||
GstBusSyncReply
|
||||
GStreamerReader::Error(GstBus *aBus, GstMessage *aMessage)
|
||||
{
|
||||
if (GST_MESSAGE_TYPE(aMessage) == GST_MESSAGE_ERROR) {
|
||||
Eos();
|
||||
}
|
||||
|
||||
return GST_BUS_PASS;
|
||||
}
|
||||
|
||||
void GStreamerReader::PlayBinSourceSetupCb(GstElement* aPlayBin,
|
||||
GParamSpec* pspec,
|
||||
gpointer aUserData)
|
||||
@ -363,9 +347,6 @@ nsresult GStreamerReader::ReadMetadata(VideoInfo* aInfo,
|
||||
|
||||
*aTags = nullptr;
|
||||
|
||||
// Watch the pipeline for fatal errors
|
||||
gst_bus_set_sync_handler(mBus, GStreamerReader::ErrorCb, this);
|
||||
|
||||
/* set the pipeline to PLAYING so that it starts decoding and queueing data in
|
||||
* the appsinks */
|
||||
gst_element_set_state(mPlayBin, GST_STATE_PLAYING);
|
||||
@ -1023,10 +1004,10 @@ void GStreamerReader::NewAudioBuffer()
|
||||
void GStreamerReader::EosCb(GstAppSink* aSink, gpointer aUserData)
|
||||
{
|
||||
GStreamerReader* reader = reinterpret_cast<GStreamerReader*>(aUserData);
|
||||
reader->Eos();
|
||||
reader->Eos(aSink);
|
||||
}
|
||||
|
||||
void GStreamerReader::Eos()
|
||||
void GStreamerReader::Eos(GstAppSink* aSink)
|
||||
{
|
||||
/* We reached the end of the stream */
|
||||
{
|
||||
|
@ -64,9 +64,6 @@ private:
|
||||
|
||||
/* Gst callbacks */
|
||||
|
||||
static GstBusSyncReply ErrorCb(GstBus *aBus, GstMessage *aMessage, gpointer aUserData);
|
||||
GstBusSyncReply Error(GstBus *aBus, GstMessage *aMessage);
|
||||
|
||||
/* Called on the source-setup signal emitted by playbin. Used to
|
||||
* configure appsrc .
|
||||
*/
|
||||
@ -119,7 +116,7 @@ private:
|
||||
|
||||
/* Called at end of stream, when decoding has finished */
|
||||
static void EosCb(GstAppSink* aSink, gpointer aUserData);
|
||||
void Eos();
|
||||
void Eos(GstAppSink* aSink);
|
||||
|
||||
GstElement* mPlayBin;
|
||||
GstBus* mBus;
|
||||
|
Loading…
Reference in New Issue
Block a user