ext/ffmpeg/gstffmpegenc.c: If we are not operating in RTP mode, leave the default...
authorMark Nauwelaerts <manauw@skynet.be>
Wed, 16 Aug 2006 09:18:28 +0000 (09:18 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 16 Aug 2006 09:18:28 +0000 (09:18 +0000)
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.

ChangeLog
ext/ffmpeg/gstffmpegenc.c

index cdd685c..566a660 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * configure.ac:
index 890ddc4..0a16c38 100644 (file)
@@ -409,9 +409,6 @@ gst_ffmpegenc_setcaps (GstPad * pad, GstCaps * caps)
   if (ffmpegenc->rtp_payload_size) {
     ffmpegenc->context->rtp_mode = 1;
     ffmpegenc->context->rtp_payload_size = ffmpegenc->rtp_payload_size;
-  } else {
-    ffmpegenc->context->rtp_mode = 0;
-    ffmpegenc->context->rtp_payload_size = 512;
   }
 
   /* general properties */