mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 973744 - Remove matroska seek hack in the gstreamer media backend. r=edwin
This commit is contained in:
parent
399a9df609
commit
de531bfc91
@ -372,27 +372,6 @@ nsresult GStreamerReader::ReadMetadata(MediaInfo* aInfo,
|
||||
/* we couldn't get this to play */
|
||||
return ret;
|
||||
|
||||
/* FIXME: workaround for a bug in matroskademux. This seek makes matroskademux
|
||||
* parse the index */
|
||||
LOG(PR_LOG_DEBUG, ("doing matroskademux seek hack"));
|
||||
if (gst_element_seek_simple(mPlayBin, GST_FORMAT_TIME,
|
||||
GST_SEEK_FLAG_FLUSH, 0)) {
|
||||
/* after a seek we need to wait again for ASYNC_DONE */
|
||||
message = gst_bus_timed_pop_filtered(mBus, 5 * GST_SECOND,
|
||||
(GstMessageType)(GST_MESSAGE_ASYNC_DONE | GST_MESSAGE_ERROR));
|
||||
if (message == NULL || GST_MESSAGE_TYPE(message) != GST_MESSAGE_ASYNC_DONE) {
|
||||
LOG(PR_LOG_DEBUG, ("matroskademux seek hack failed: %p", message));
|
||||
gst_element_set_state(mPlayBin, GST_STATE_NULL);
|
||||
if (message) {
|
||||
gst_message_unref(message);
|
||||
}
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
LOG(PR_LOG_DEBUG, ("matroskademux seek hack completed"));
|
||||
} else {
|
||||
LOG(PR_LOG_DEBUG, ("matroskademux seek hack failed (non fatal)"));
|
||||
}
|
||||
|
||||
bool isMP3 = mDecoder->GetResource()->GetContentType().EqualsASCII(AUDIO_MP3);
|
||||
if (isMP3) {
|
||||
ParseMP3Headers();
|
||||
|
Loading…
Reference in New Issue
Block a user