316
316
switch (_tmp1_) {
317
317
case GST_MESSAGE_STATE_CHANGED:
319
GstState old_state = 0;
320
GstState new_state = 0;
321
319
GstMessage* _tmp2_;
324
gboolean _tmp5_ = FALSE;
327
322
_tmp2_ = message;
328
gst_message_parse_state_changed (_tmp2_, &_tmp3_, &_tmp4_, NULL);
332
if (_tmp6_ == GST_STATE_READY) {
335
_tmp5_ = _tmp7_ == GST_STATE_PAUSED;
341
g_object_notify ((GObject*) self, "duration");
323
_tmp3_ = _tmp2_->src;
324
_tmp4_ = self->priv->playbin;
325
if (_tmp3_ == GST_OBJECT (_tmp4_)) {
326
GstState old_state = 0;
327
GstState new_state = 0;
331
gboolean _tmp8_ = FALSE;
335
gst_message_parse_state_changed (_tmp5_, &_tmp6_, &_tmp7_, NULL);
339
if (_tmp9_ == GST_STATE_READY) {
342
_tmp8_ = _tmp10_ == GST_STATE_PAUSED;
348
g_object_notify ((GObject*) self, "duration");
345
353
case GST_MESSAGE_EOS:
347
gboolean _tmp9_ = FALSE;
348
_tmp9_ = rygel_playbin_player_is_rendering_image (self);
350
g_debug ("rygel-playbin-player.vala:197: EOS");
355
gboolean _tmp12_ = FALSE;
356
_tmp12_ = rygel_playbin_player_is_rendering_image (self);
358
g_debug ("rygel-playbin-player.vala:199: EOS");
351
359
rygel_media_player_set_playback_state ((RygelMediaPlayer*) self, "STOPPED");
353
g_debug ("rygel-playbin-player.vala:200: Content is image, ignoring EOS");
361
g_debug ("rygel-playbin-player.vala:202: Content is image, ignoring EOS");
359
367
GError* _error_ = NULL;
360
368
gchar* error_message = NULL;
362
GError* _tmp11_ = NULL;
363
gchar* _tmp12_ = NULL;
368
const gchar* _tmp17_;
370
gst_message_parse_error (_tmp10_, &_tmp11_, &_tmp12_);
370
GError* _tmp14_ = NULL;
371
gchar* _tmp15_ = NULL;
376
const gchar* _tmp20_;
378
gst_message_parse_error (_tmp13_, &_tmp14_, &_tmp15_);
371
379
_g_error_free0 (_error_);
373
381
_g_free0 (error_message);
374
error_message = _tmp12_;
375
_tmp13_ = self->priv->playbin;
376
_tmp14_ = gst_object_get_name ((GstObject*) _tmp13_);
379
_tmp17_ = error_message;
380
g_warning ("rygel-playbin-player.vala:210: Error from GStreamer element %s: %s", _tmp16_, _tmp17_);
382
g_warning ("rygel-playbin-player.vala:213: Going to STOPPED state");
382
error_message = _tmp15_;
383
_tmp16_ = self->priv->playbin;
384
_tmp17_ = gst_object_get_name ((GstObject*) _tmp16_);
387
_tmp20_ = error_message;
388
g_warning ("rygel-playbin-player.vala:212: Error from GStreamer element %s: %s", _tmp19_, _tmp20_);
390
g_warning ("rygel-playbin-player.vala:215: Going to STOPPED state");
383
391
rygel_media_player_set_playback_state ((RygelMediaPlayer*) self, "STOPPED");
384
392
_g_free0 (error_message);
385
393
_g_error_free0 (_error_);