ext/ffmpeg/gstffmpegenc.c: If we are not operating in RTP mode, leave the default rtp encoder settings as they are so...

Original commit message from CVS:
Patch by: Mark Nauwelaerts <manauw at skynet dot be>
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_setcaps):
If we are not operating in RTP mode, leave the default rtp encoder
settings as they are so that we don't unintentionally activate it.
Fixes #351415.
This commit is contained in:
Mark Nauwelaerts 2006-08-16 09:18:28 +00:00 committed by Wim Taymans
parent 041090a8d5
commit fbe18ef096
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,13 @@
2006-08-16 Wim Taymans <wim@fluendo.com>
Patch by: Mark Nauwelaerts <manauw at skynet dot be>
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_setcaps):
If we are not operating in RTP mode, leave the default rtp encoder
settings as they are so that we don't unintentionally activate it.
Fixes #351415.
2006-08-14 Edward Hervey <edward@fluendo.com> 2006-08-14 Edward Hervey <edward@fluendo.com>
* configure.ac: * configure.ac:

View file

@ -409,9 +409,6 @@ gst_ffmpegenc_setcaps (GstPad * pad, GstCaps * caps)
if (ffmpegenc->rtp_payload_size) { if (ffmpegenc->rtp_payload_size) {
ffmpegenc->context->rtp_mode = 1; ffmpegenc->context->rtp_mode = 1;
ffmpegenc->context->rtp_payload_size = ffmpegenc->rtp_payload_size; ffmpegenc->context->rtp_payload_size = ffmpegenc->rtp_payload_size;
} else {
ffmpegenc->context->rtp_mode = 0;
ffmpegenc->context->rtp_payload_size = 512;
} }
/* general properties */ /* general properties */