mpegtsmux: Set adaptation flag when appropriate
authorDavid Schleef <ds@schleef.org>
Sun, 5 Dec 2010 11:29:42 +0000 (03:29 -0800)
committerDavid Schleef <ds@schleef.org>
Sun, 2 Jan 2011 22:52:34 +0000 (14:52 -0800)
Specifically, when there's stuff to go into the adaptation
header.

gst/mpegtsmux/tsmux/tsmuxstream.c

index 88d533a..f147bfc 100644 (file)
@@ -378,6 +378,7 @@ tsmux_stream_initialize_pes_packet (TsMuxStream * stream)
     TsMuxStreamBuffer *buf = (TsMuxStreamBuffer *) (stream->buffers->data);
     if (buf->random_access) {
       stream->pi.flags |= TSMUX_PACKET_FLAG_RANDOM_ACCESS;
+      stream->pi.flags |= TSMUX_PACKET_FLAG_ADAPTATION;
     }
   }