mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
ext/ffmpeg/gstffmpegdemux.c: Reduce the probability of the MPEG-TS typefinder, because there's a better one in recent...
Original commit message from CVS: * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_type_find): Reduce the probability of the MPEG-TS typefinder, because there's a better one in recent base releases.
This commit is contained in:
parent
bdadc136b2
commit
a23a6a9d2a
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-05-21 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_type_find):
|
||||||
|
Reduce the probability of the MPEG-TS typefinder, because there's a
|
||||||
|
better one in recent base releases.
|
||||||
|
|
||||||
2007-05-17 Edward Hervey <edward@fluendo.com>
|
2007-05-17 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -1132,6 +1132,12 @@ gst_ffmpegdemux_type_find (GstTypeFind * tf, gpointer priv)
|
||||||
res = in_plugin->read_probe (&probe_data);
|
res = in_plugin->read_probe (&probe_data);
|
||||||
if (res > 0) {
|
if (res > 0) {
|
||||||
res = MAX (1, res * GST_TYPE_FIND_MAXIMUM / AVPROBE_SCORE_MAX);
|
res = MAX (1, res * GST_TYPE_FIND_MAXIMUM / AVPROBE_SCORE_MAX);
|
||||||
|
/* Restrict the probability for MPEG-TS streams, because there is
|
||||||
|
* probably a better version in plugins-base, if the user has a recent
|
||||||
|
* plugins-base */
|
||||||
|
if (!strcmp (in_plugin->name, "mpegts"))
|
||||||
|
res = MIN (res, GST_TYPE_FIND_POSSIBLE);
|
||||||
|
|
||||||
gst_type_find_suggest (tf, res, params->sinkcaps);
|
gst_type_find_suggest (tf, res, params->sinkcaps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue