#define QTWRAPPER_ADEC_PARAMS_QDATA g_quark_from_static_string("qtwrapper-adec-params")
+#define NO_MORE_INPUT_DATA 42
+
static GstStaticPadTemplate src_templ = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
return noErr;
}
- GST_LOG_OBJECT (qtwrapper, "No remaining input data, returning 42 for hack");
+ GST_LOG_OBJECT (qtwrapper, "No remaining input data, returning NO_MORE_INPUT_DATA");
- return 42;
+ return NO_MORE_INPUT_DATA;
}
static GstFlowReturn
(SCAudioInputDataProc) process_buffer_cb,
qtwrapper, (UInt32 *) & outsamples, qtwrapper->bufferlist, NULL);
- /* TODO: What's this '42' crap?? It does seem to be needed, though. */
- if ((status != noErr) && (status != 42)) {
+ if ((status != noErr) && (status != NO_MORE_INPUT_DATA)) {
if (status < 0)
GST_WARNING_OBJECT (qtwrapper,
"Error in SCAudioFillBuffer() : %d", (gint32) status);