20 #ifndef GNASH_MEDIAPARSER_GST_H
21 #define GNASH_MEDIAPARSER_GST_H
24 #include <boost/scoped_array.hpp>
28 #include <boost/optional.hpp>
98 boost::uint64_t _start_time;
117 bool seek(boost::uint32_t&);
125 virtual boost::optional<Id3Info>
getId3Info()
const;
131 bool foundAllStreams();
133 bool probingConditionsMet(
const SimpleTimer& timer);
135 void link_to_fakesink(GstPad* pad);
137 static void cb_typefound (GstElement *typefind, guint probability,
138 GstCaps *caps, gpointer
data);
140 static void cb_pad_added(GstElement* element,
141 GstPad* new_pad, gpointer user_data);
142 static void cb_no_more_pads (GstElement* element, gpointer data);
144 static GstFlowReturn cb_chain_func_audio (GstPad *pad, GstBuffer *buffer);
145 static GstFlowReturn cb_chain_func_video (GstPad *pad, GstBuffer *buffer);
147 bool pushGstBuffer();
148 bool emitEncodedFrames();
156 bool _demux_probe_ended;
158 std::deque<EncodedAudioFrame*> _enc_audio_frames;
159 std::deque<EncodedVideoFrame*> _enc_video_frames;
167 #endif // __MEDIAPARSER_GST_H__