summaryrefslogtreecommitdiffstats
path: root/gst/mpegtsmux
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-19 16:21:28 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-19 16:21:28 +0100
commit6eb167a17698506fc08f47594e133fa4e44afd3e (patch)
tree8a042362aa7f2c60cf5f39070a4d8c0cd713926a /gst/mpegtsmux
parent29aa30d9a05bf6c408160de108f2486a0c08bd48 (diff)
downloadgst-plugins-bad-6eb167a17698506fc08f47594e133fa4e44afd3e.tar.gz
gst-plugins-bad-6eb167a17698506fc08f47594e133fa4e44afd3e.tar.bz2
gst-plugins-bad-6eb167a17698506fc08f47594e133fa4e44afd3e.zip
Make build without warnings with debugging disabled
Diffstat (limited to 'gst/mpegtsmux')
-rw-r--r--gst/mpegtsmux/mpegtsmux.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c
index f24c4a3e..2df635bc 100644
--- a/gst/mpegtsmux/mpegtsmux.c
+++ b/gst/mpegtsmux/mpegtsmux.c
@@ -523,6 +523,8 @@ mpegtsmux_choose_best_stream (MpegTsMux * mux)
return best;
}
+#define COLLECT_DATA_PAD(collect_data) ((GstCollectData *)(collect_data))->pad)
+
static GstFlowReturn
mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
{
@@ -540,10 +542,8 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
if (mux->pcr_stream == NULL) {
if (best) {
- GstCollectData *c_data = (GstCollectData *) best;
/* Take the first data stream for the PCR */
- GST_DEBUG_OBJECT (mux, "Use stream from pad %" GST_PTR_FORMAT " as PCR",
- c_data->pad);
+ GST_DEBUG_OBJECT (COLLECT_DATA_PAD (best), "Use stream as PCR");
mux->pcr_stream = best->stream;
}
}
@@ -564,14 +564,12 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
if (best != NULL) {
GstBuffer *buf = best->queued_buf;
- GstCollectData *c_data = (GstCollectData *) best;
gint64 pts = -1;
g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR);
- GST_DEBUG_OBJECT (mux,
- "Chose stream from pad %" GST_PTR_FORMAT " for output (PID: 0x%04x)",
- c_data->pad, best->pid);
+ GST_DEBUG_OBJECT (COLLECT_DATA_PAD (best),
+ "Chose stream for output (PID: 0x%04x)", best->pid);
if (GST_CLOCK_TIME_IS_VALID (best->cur_ts)) {
pts = GSTTIME_TO_MPEGTIME (best->cur_ts);