summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2015-06-10 12:31:13 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-06-12 17:10:29 -0400
commit8432116df284465eb95351eea3355e3e862d702e (patch)
tree6aa46c5f308e7829403bb2afde50a7d41fc2ced6
parent91cbaa5ac7bedfb00d3144f37d2c2bb67f581c14 (diff)
downloadgstreamer-plugins-bad-8432116df284465eb95351eea3355e3e862d702e.tar.gz
tsmux: Remove uneeded cast and cast macro
https://bugzilla.gnome.org/show_bug.cgi?id=740575
-rw-r--r--gst/mpegtsmux/mpegtsmux.c2
-rw-r--r--gst/mpegtsmux/mpegtsmux.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c
index c1ab11bff..b91d6b515 100644
--- a/gst/mpegtsmux/mpegtsmux.c
+++ b/gst/mpegtsmux/mpegtsmux.c
@@ -1175,7 +1175,7 @@ mpegtsmux_collected_buffer (GstCollectPads * pads, GstCollectData * data,
/* Take the first data stream for the PCR */
GST_DEBUG_OBJECT (COLLECT_DATA_PAD (best),
"Use stream (pid=%d) from pad as PCR for program (prog_id = %d)",
- MPEG_TS_PAD_DATA (best)->pid, MPEG_TS_PAD_DATA (best)->prog_id);
+ best->pid, best->prog_id);
/* Set the chosen PCR stream */
tsmux_program_set_pcr_stream (prog, best->stream);
diff --git a/gst/mpegtsmux/mpegtsmux.h b/gst/mpegtsmux/mpegtsmux.h
index e829a3177..ab664ed7a 100644
--- a/gst/mpegtsmux/mpegtsmux.h
+++ b/gst/mpegtsmux/mpegtsmux.h
@@ -176,8 +176,6 @@ struct MpegTsMuxClass {
GstElementClass parent_class;
};
-#define MPEG_TS_PAD_DATA(data) ((MpegTsPadData *)(data))
-
struct MpegTsPadData {
/* parent */
GstCollectData collect;