mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
Merge branch 'master' into 0.11
Conflicts: gst-libs/ext/libav
This commit is contained in:
commit
b0cc0cf55d
4 changed files with 18 additions and 5 deletions
|
@ -899,6 +899,11 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
|
||||||
"indeoversion", G_TYPE_INT, 5, NULL);
|
"indeoversion", G_TYPE_INT, 5, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CODEC_ID_INDEO4:
|
||||||
|
caps = gst_ff_vid_caps_new (context, codec_id, "video/x-indeo",
|
||||||
|
"indeoversion", G_TYPE_INT, 4, NULL);
|
||||||
|
break;
|
||||||
|
|
||||||
case CODEC_ID_INDEO3:
|
case CODEC_ID_INDEO3:
|
||||||
caps = gst_ff_vid_caps_new (context, codec_id, "video/x-indeo",
|
caps = gst_ff_vid_caps_new (context, codec_id, "video/x-indeo",
|
||||||
"indeoversion", G_TYPE_INT, 3, NULL);
|
"indeoversion", G_TYPE_INT, 3, NULL);
|
||||||
|
@ -3020,6 +3025,9 @@ gst_ffmpeg_caps_to_codecid (const GstCaps * caps, AVCodecContext * context)
|
||||||
case 5:
|
case 5:
|
||||||
id = CODEC_ID_INDEO5;
|
id = CODEC_ID_INDEO5;
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
id = CODEC_ID_INDEO4;
|
||||||
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
id = CODEC_ID_INDEO3;
|
id = CODEC_ID_INDEO3;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -838,11 +838,16 @@ gst_ffmpegdec_setcaps (GstFFMpegDec * ffmpegdec, GstCaps * caps)
|
||||||
* supports it) */
|
* supports it) */
|
||||||
ffmpegdec->context->debug_mv = ffmpegdec->debug_mv;
|
ffmpegdec->context->debug_mv = ffmpegdec->debug_mv;
|
||||||
|
|
||||||
if (ffmpegdec->max_threads == 0)
|
if (ffmpegdec->max_threads == 0) {
|
||||||
ffmpegdec->context->thread_count = gst_ffmpeg_auto_max_threads ();
|
if (!(oclass->in_plugin->capabilities & CODEC_CAP_AUTO_THREADS))
|
||||||
else
|
ffmpegdec->context->thread_count = gst_ffmpeg_auto_max_threads ();
|
||||||
|
else
|
||||||
|
ffmpegdec->context->thread_count = 0;
|
||||||
|
} else
|
||||||
ffmpegdec->context->thread_count = ffmpegdec->max_threads;
|
ffmpegdec->context->thread_count = ffmpegdec->max_threads;
|
||||||
|
|
||||||
|
ffmpegdec->context->thread_type = FF_THREAD_SLICE;
|
||||||
|
|
||||||
/* open codec - we don't select an output pix_fmt yet,
|
/* open codec - we don't select an output pix_fmt yet,
|
||||||
* simply because we don't know! We only get it
|
* simply because we don't know! We only get it
|
||||||
* during playback... */
|
* during playback... */
|
||||||
|
|
|
@ -795,7 +795,7 @@ gst_ffmpegmux_collected (GstCollectPads2 * pads, gpointer user_data)
|
||||||
static GstStateChangeReturn
|
static GstStateChangeReturn
|
||||||
gst_ffmpegmux_change_state (GstElement * element, GstStateChange transition)
|
gst_ffmpegmux_change_state (GstElement * element, GstStateChange transition)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret;
|
GstStateChangeReturn ret;
|
||||||
GstFFMpegMux *ffmpegmux = (GstFFMpegMux *) (element);
|
GstFFMpegMux *ffmpegmux = (GstFFMpegMux *) (element);
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 85afbb1d00d58812df5d634e946b2fcf653bcd8e
|
Subproject commit 4b63cc18bc44517f0f9e04b39ab873cbc3c6aee5
|
Loading…
Reference in a new issue