summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Vermeir <thijsvermeir@gmail.com>2012-07-17 17:44:33 +0200
committerThijs Vermeir <thijsvermeir@gmail.com>2012-07-17 17:46:47 +0200
commit91e6767c5984b3ec3f3ff938a813eb5c1ca8a8b7 (patch)
tree1c3d9639c017ff75791af768731fd704d29a6a26
parentcce71223d7b2f8227301f0724a18fc647f0cfd06 (diff)
dataprotocol: also copy the MEDIA flags
-rw-r--r--libs/gst/dataprotocol/dataprotocol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gst/dataprotocol/dataprotocol.c b/libs/gst/dataprotocol/dataprotocol.c
index b57d377d6..993642596 100644
--- a/libs/gst/dataprotocol/dataprotocol.c
+++ b/libs/gst/dataprotocol/dataprotocol.c
@@ -153,7 +153,8 @@ gst_dp_header_from_buffer_any (const GstBuffer * buffer, GstDPHeaderFlag flags,
/* we copy everything but the read-only flags */
flags_mask = GST_BUFFER_FLAG_PREROLL | GST_BUFFER_FLAG_DISCONT |
GST_BUFFER_FLAG_IN_CAPS | GST_BUFFER_FLAG_GAP |
- GST_BUFFER_FLAG_DELTA_UNIT;
+ GST_BUFFER_FLAG_DELTA_UNIT | GST_BUFFER_FLAG_MEDIA1 |
+ GST_BUFFER_FLAG_MEDIA2 | GST_BUFFER_FLAG_MEDIA3 | GST_BUFFER_FLAG_MEDIA4;
GST_WRITE_UINT16_BE (h + 42, GST_BUFFER_FLAGS (buffer) & flags_mask);