~ubuntu-branches/ubuntu/quantal/rygel/quantal

« back to all changes in this revision

Viewing changes to src/plugins/playbin/rygel-playbin-player.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2012-05-02 16:13:07 UTC
  • mfrom: (14.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20120502161307-tdw072ck2ta24oet
Tags: 0.14.1-1
* Install DLNA compatible icons from new location
* Imported Upstream version 0.14.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
316
316
        switch (_tmp1_) {
317
317
                case GST_MESSAGE_STATE_CHANGED:
318
318
                {
319
 
                        GstState old_state = 0;
320
 
                        GstState new_state = 0;
321
319
                        GstMessage* _tmp2_;
322
 
                        GstState _tmp3_ = 0;
323
 
                        GstState _tmp4_ = 0;
324
 
                        gboolean _tmp5_ = FALSE;
325
 
                        GstState _tmp6_;
326
 
                        gboolean _tmp8_;
 
320
                        GstObject* _tmp3_;
 
321
                        GstElement* _tmp4_;
327
322
                        _tmp2_ = message;
328
 
                        gst_message_parse_state_changed (_tmp2_, &_tmp3_, &_tmp4_, NULL);
329
 
                        old_state = _tmp3_;
330
 
                        new_state = _tmp4_;
331
 
                        _tmp6_ = old_state;
332
 
                        if (_tmp6_ == GST_STATE_READY) {
333
 
                                GstState _tmp7_;
334
 
                                _tmp7_ = new_state;
335
 
                                _tmp5_ = _tmp7_ == GST_STATE_PAUSED;
336
 
                        } else {
337
 
                                _tmp5_ = FALSE;
338
 
                        }
339
 
                        _tmp8_ = _tmp5_;
340
 
                        if (_tmp8_) {
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;
 
328
                                GstMessage* _tmp5_;
 
329
                                GstState _tmp6_ = 0;
 
330
                                GstState _tmp7_ = 0;
 
331
                                gboolean _tmp8_ = FALSE;
 
332
                                GstState _tmp9_;
 
333
                                gboolean _tmp11_;
 
334
                                _tmp5_ = message;
 
335
                                gst_message_parse_state_changed (_tmp5_, &_tmp6_, &_tmp7_, NULL);
 
336
                                old_state = _tmp6_;
 
337
                                new_state = _tmp7_;
 
338
                                _tmp9_ = old_state;
 
339
                                if (_tmp9_ == GST_STATE_READY) {
 
340
                                        GstState _tmp10_;
 
341
                                        _tmp10_ = new_state;
 
342
                                        _tmp8_ = _tmp10_ == GST_STATE_PAUSED;
 
343
                                } else {
 
344
                                        _tmp8_ = FALSE;
 
345
                                }
 
346
                                _tmp11_ = _tmp8_;
 
347
                                if (_tmp11_) {
 
348
                                        g_object_notify ((GObject*) self, "duration");
 
349
                                }
342
350
                        }
343
351
                        break;
344
352
                }
345
353
                case GST_MESSAGE_EOS:
346
354
                {
347
 
                        gboolean _tmp9_ = FALSE;
348
 
                        _tmp9_ = rygel_playbin_player_is_rendering_image (self);
349
 
                        if (!_tmp9_) {
350
 
                                g_debug ("rygel-playbin-player.vala:197: EOS");
 
355
                        gboolean _tmp12_ = FALSE;
 
356
                        _tmp12_ = rygel_playbin_player_is_rendering_image (self);
 
357
                        if (!_tmp12_) {
 
358
                                g_debug ("rygel-playbin-player.vala:199: EOS");
351
359
                                rygel_media_player_set_playback_state ((RygelMediaPlayer*) self, "STOPPED");
352
360
                        } else {
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");
354
362
                        }
355
363
                        break;
356
364
                }
358
366
                {
359
367
                        GError* _error_ = NULL;
360
368
                        gchar* error_message = NULL;
361
 
                        GstMessage* _tmp10_;
362
 
                        GError* _tmp11_ = NULL;
363
 
                        gchar* _tmp12_ = NULL;
364
 
                        GstElement* _tmp13_;
365
 
                        gchar* _tmp14_;
366
 
                        gchar* _tmp15_;
367
 
                        gchar* _tmp16_;
368
 
                        const gchar* _tmp17_;
369
 
                        _tmp10_ = message;
370
 
                        gst_message_parse_error (_tmp10_, &_tmp11_, &_tmp12_);
 
369
                        GstMessage* _tmp13_;
 
370
                        GError* _tmp14_ = NULL;
 
371
                        gchar* _tmp15_ = NULL;
 
372
                        GstElement* _tmp16_;
 
373
                        gchar* _tmp17_;
 
374
                        gchar* _tmp18_;
 
375
                        gchar* _tmp19_;
 
376
                        const gchar* _tmp20_;
 
377
                        _tmp13_ = message;
 
378
                        gst_message_parse_error (_tmp13_, &_tmp14_, &_tmp15_);
371
379
                        _g_error_free0 (_error_);
372
 
                        _error_ = _tmp11_;
 
380
                        _error_ = _tmp14_;
373
381
                        _g_free0 (error_message);
374
 
                        error_message = _tmp12_;
375
 
                        _tmp13_ = self->priv->playbin;
376
 
                        _tmp14_ = gst_object_get_name ((GstObject*) _tmp13_);
377
 
                        _tmp15_ = _tmp14_;
378
 
                        _tmp16_ = _tmp15_;
379
 
                        _tmp17_ = error_message;
380
 
                        g_warning ("rygel-playbin-player.vala:210: Error from GStreamer element %s: %s", _tmp16_, _tmp17_);
381
 
                        _g_free0 (_tmp16_);
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_);
 
385
                        _tmp18_ = _tmp17_;
 
386
                        _tmp19_ = _tmp18_;
 
387
                        _tmp20_ = error_message;
 
388
                        g_warning ("rygel-playbin-player.vala:212: Error from GStreamer element %s: %s", _tmp19_, _tmp20_);
 
389
                        _g_free0 (_tmp19_);
 
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_);