equal
deleted
inserted
replaced
196 MediaNode *sink = qobject_cast<MediaNode*>(obj); |
196 MediaNode *sink = qobject_cast<MediaNode*>(obj); |
197 if (root()) { |
197 if (root()) { |
198 // Disconnecting elements while playing or paused seems to cause |
198 // Disconnecting elements while playing or paused seems to cause |
199 // potential deadlock. Hence we force the pipeline into ready state |
199 // potential deadlock. Hence we force the pipeline into ready state |
200 // before any nodes are disconnected. |
200 // before any nodes are disconnected. |
201 gst_element_set_state(root()->pipeline(), GST_STATE_READY); |
201 gst_element_set_state(root()->pipeline(), GST_STATE_READY); |
202 |
202 |
203 Q_ASSERT(sink->root()); //sink has to have a root since it is onnected |
203 Q_ASSERT(sink->root()); //sink has to have a root since it is connected |
204 |
204 |
205 if (sink->description() & (AudioSink)) { |
205 if (sink->description() & (AudioSink)) { |
206 GstPad *sinkPad = gst_element_get_pad(sink->audioElement(), "sink"); |
206 GstPad *sinkPad = gst_element_get_pad(sink->audioElement(), "sink"); |
207 // Release requested src pad from tee |
207 // Release requested src pad from tee |
208 GstPad *requestedPad = gst_pad_get_peer(sinkPad); |
208 GstPad *requestedPad = gst_pad_get_peer(sinkPad); |